ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Hyperlink-Programable replacement of Text with Its Actual Address (https://www.excelbanter.com/excel-worksheet-functions/31974-hyperlink-programable-replacement-text-its-actual-address.html)

Kathy

Hyperlink-Programable replacement of Text with Its Actual Address
 
I have a large number of hyperlinks previousely created in worksheets in a
form the text to display is always different from its actual address. Now I
am looking for a 'programable' way to replace all the text to display with
their actual addresses, rather than manually change it one at a time by
editting the hyperlinks using GUI. Your knowledge and experience will be
greatly appreciated. Thanks you very much.



Dave Peterson

A little macro ok?

Option Explicit
Sub testme()
Dim wks As Worksheet
Dim myHyper As Hyperlink

Set wks = Worksheets("sheet1")
For Each myHyper In wks.Hyperlinks
myHyper.Parent.Value = myHyper.Address
Next myHyper
End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm


Kathy wrote:

I have a large number of hyperlinks previousely created in worksheets in a
form the text to display is always different from its actual address. Now I
am looking for a 'programable' way to replace all the text to display with
their actual addresses, rather than manually change it one at a time by
editting the hyperlinks using GUI. Your knowledge and experience will be
greatly appreciated. Thanks you very much.


--

Dave Peterson

Kathy

Yes. That's what I am looking for. Thank you very much.

"Dave Peterson" wrote:

A little macro ok?

Option Explicit
Sub testme()
Dim wks As Worksheet
Dim myHyper As Hyperlink

Set wks = Worksheets("sheet1")
For Each myHyper In wks.Hyperlinks
myHyper.Parent.Value = myHyper.Address
Next myHyper
End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm


Kathy wrote:

I have a large number of hyperlinks previousely created in worksheets in a
form the text to display is always different from its actual address. Now I
am looking for a 'programable' way to replace all the text to display with
their actual addresses, rather than manually change it one at a time by
editting the hyperlinks using GUI. Your knowledge and experience will be
greatly appreciated. Thanks you very much.


--

Dave Peterson



All times are GMT +1. The time now is 03:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com