[Solved] How to show Hyperlink?

Discuss the spreadsheet application
Post Reply
dawidek990
Posts: 55
Joined: Thu Dec 13, 2018 10:27 am

[Solved] How to show Hyperlink?

Post by dawidek990 »

Hello, does anyone know what to do so that instead of the name, they showed me the addresses in the cells with hyperlinks?
For example: I have name Openoffice but is hiperlink http://www.openoffice.com, calc show me only OpenOffice, when i clikc it, browser open link... but i need, to calc show me links in cells ;]
it is possible?

Greeteings ;]
Last edited by Hagar Delest on Sun Oct 20, 2019 7:21 pm, edited 1 time in total.
Reason: tagged solved
OpenOffice 4.1.6 Windows 10
FJCC
Moderator
Posts: 9277
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: How to show Hiperlink?

Post by FJCC »

If I type
www.openoffice.org
in a cell, it gets formatted as a hyperlink and shows exactly that text. This works if I have the option URL Recognition selected in the menu Tools -> AutoCorrect Options on the Options tab.
I can also enter the formula

Code: Select all

=HYPERLINK("www.openoffice.org")
in a cell and it will display that text and act as a hyperlink.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
dawidek990
Posts: 55
Joined: Thu Dec 13, 2018 10:27 am

Re: How to show Hiperlink?

Post by dawidek990 »

Okey, is not what i want.

Look in this file on column G... there is a hiperlinks, but i need see links in cells no names of products. How can i do this?
some options? or forumla? or makro?
Attachments
Polcolorit.ods
(23.6 KiB) Downloaded 99 times
OpenOffice 4.1.6 Windows 10
User avatar
DiGro
Posts: 175
Joined: Mon Oct 08, 2007 1:31 am
Location: Hoorn NH, The Netherlands

Re: How to show Hiperlink?

Post by DiGro »

On column G select the entry you want to change (Click in the cell next to the text, otherwise you will use the link and go to the page)

Use Insert --> Hyperlink

then copy the text from Target to Text (see picture)
Insert_Hyperlink.png
Attachments
Polcolorit_k.ods
Some hyperlinks inserted
(23.56 KiB) Downloaded 94 times
____________
DiGro

AOO 4.1.15 (Dutch) on Windows 11. Scanned with Ziggo Safe Online (F-Secure)
User avatar
Zizi64
Volunteer
Posts: 11360
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: How to show Hiperlink?

Post by Zizi64 »

Here is a macro cellfunction solution, the original code written by Villeroy, I just modified it.
viewtopic.php?f=21&t=2762

Code: Select all

REM  *****  BASIC  *****
Option Explicit

Function CELL_URL(lSheetIndex as long,lRowIndex as long, iColIndex as long)
 Dim oDoc as object
 Dim oSheet as Object
 Dim oCell as object

	oDoc = ThisComponent
	oSheet = oDoc.Sheets.getbyindex(lSheetIndex)
	oCell = oSheet.getCellByPosition(lRowIndex,iColIndex)
	CELL_URL = "nothing"
	if vartype(oCell) = 9 then
		CELL_URL = oCell.getTextfields.getByIndex(0).URL
	end if
End Function
Polcolorit_Villeroy_Zizi64.ods
(32.31 KiB) Downloaded 107 times
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
dawidek990
Posts: 55
Joined: Thu Dec 13, 2018 10:27 am

Re: How to show Hyperlink?

Post by dawidek990 »

Wow, is working, thank you very much ;]
OpenOffice 4.1.6 Windows 10
User avatar
Lupp
Volunteer
Posts: 3553
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: How to show Hyperlink?

Post by Lupp »

If somebody wants to also be able to list any number of URL linked to portions of the text contained in a cell, the attached example can help. It contains user functions for the purpose.
Attachments
aoo99698ListURL_1.ods
(16.88 KiB) Downloaded 121 times
On Windows 10: LibreOffice 24.2 (new numbering) and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
Post Reply