Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Kathy
 
Posts: n/a
Default 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.


  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

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
  #3   Report Post  
Kathy
 
Posts: n/a
Default

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
Hyperlink display text maximum in Excel 2003 CTC Excel Discussion (Misc queries) 2 May 25th 05 07:17 PM
creating hyperlink inside oval with text in it Todd F. Excel Discussion (Misc queries) 1 May 9th 05 04:44 PM
Hyperlink from plain text. B.C.Lioness Excel Discussion (Misc queries) 2 May 3rd 05 04:10 PM
how to hyperlink text to a cell steve New Users to Excel 1 December 14th 04 08:21 PM


All times are GMT +1. The time now is 02:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"