Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have multiple hyperlinks in a document with the same name "safety
document". each calls up the webpage of the associated chemical from the internet. I want to convert these links to the actual web address so that I may call up these addresses using hyperlink(vlookup etc). Can someone help? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Make a back up of your file and test drive this in the spare file...
Press Alt+F11 to display the VBE and then click INSERT in the menu and select MODULE. Paste the following sub in the new module: Sub ShowHLink() Dim ws As Worksheet Dim h As Hyperlink Dim strHLink As String Set ws = ThisWorkbook.Sheets(1) For Each h In ws.Hyperlinks h.TextToDisplay = h.Address Next h Set ws = Nothing Set h = Nothing End Sub -- Kevin Backmann "Roger on Excel" wrote: I have multiple hyperlinks in a document with the same name "safety document". each calls up the webpage of the associated chemical from the internet. I want to convert these links to the actual web address so that I may call up these addresses using hyperlink(vlookup etc). Can someone help? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I forgot to add the steps to running the macro:
Click TOOLS on the menu Click MACRO on the drop-down menu Click MACROS on the cascade menu Select the macro named ShowHLink Click the RUN command button -- Kevin Backmann "Kevin B" wrote: Make a back up of your file and test drive this in the spare file... Press Alt+F11 to display the VBE and then click INSERT in the menu and select MODULE. Paste the following sub in the new module: Sub ShowHLink() Dim ws As Worksheet Dim h As Hyperlink Dim strHLink As String Set ws = ThisWorkbook.Sheets(1) For Each h In ws.Hyperlinks h.TextToDisplay = h.Address Next h Set ws = Nothing Set h = Nothing End Sub -- Kevin Backmann "Roger on Excel" wrote: I have multiple hyperlinks in a document with the same name "safety document". each calls up the webpage of the associated chemical from the internet. I want to convert these links to the actual web address so that I may call up these addresses using hyperlink(vlookup etc). Can someone help? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to extract a web address from a hyperlink cell? | Excel Discussion (Misc queries) | |||
Keeping the hyperlink address hidden in a cell. | Excel Worksheet Functions | |||
How do I show the address of hyperlink to another cell in Excel ? | Excel Discussion (Misc queries) | |||
How make hyperlink refer to cell content rather than cell address. | Excel Discussion (Misc queries) | |||
how do I add a 'web address' to a cell in excel with a hyperlink? | New Users to Excel |