Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
BenJAMMIN
 
Posts: n/a
Default Remove Hyperlinks...show the Path


If you would like to permanently display the path in the
cell (i.e. replace microsoft with www.microsoft.com), right click on the
cell, and use edit hyperlinks. The top pane shows the display name, the
bottom pane shows the path. Copy the path to the display name. I am not
sure if there is a quick way to do this. NOTE: You will have to use keyboard
commands to copy and paste.

This solution works, but it is one by one. Does anyone k now of a mass
change method? I want to take a hyperlinked word (web address or email
address) and have it display the hyperlink properties instead of the word.
  #2   Report Post  
Jim Rech
 
Posts: n/a
Default

If you just want to change the text displayed in the cell:

Dim Cell As Range
For Each Cell In Selection
Cell.Value = "www." & Cell.Value & ".com"
Next


--
Jim
"BenJAMMIN" wrote in message
...
|
| If you would like to permanently display the path in the
| cell (i.e. replace microsoft with www.microsoft.com), right click on the
| cell, and use edit hyperlinks. The top pane shows the display name, the
| bottom pane shows the path. Copy the path to the display name. I am not
| sure if there is a quick way to do this. NOTE: You will have to use
keyboard
| commands to copy and paste.
|
| This solution works, but it is one by one. Does anyone k now of a mass
| change method? I want to take a hyperlinked word (web address or email
| address) and have it display the hyperlink properties instead of the word.


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

This might get you started:

Option Explicit
Sub testme()

Dim myHyperlink As Hyperlink
Dim wks As Worksheet

Set wks = ActiveSheet

For Each myHyperlink In wks.Hyperlinks
myHyperlink.Parent.Value = myHyperlink.Address
Next myHyperlink

End Sub

But my tests returned:
http://www.microsoft.com/

If that's a problem, you could eliminate the http:// and trailing slash if you
want.

Option Explicit
Sub testme()

Dim myHyperlink As Hyperlink
Dim wks As Worksheet
Dim myStr As String
Dim SlashPos As Long

Set wks = ActiveSheet

For Each myHyperlink In wks.Hyperlinks
myStr = myHyperlink.Address
SlashPos = InStr(1, myStr, "//")
If SlashPos 0 Then
myStr = Mid(myStr, SlashPos + 2)
End If
If LCase(Left(myStr, 7)) = "mailto:" Then
myStr = Mid(myStr, 8)
End If
If Right(myStr, 1) = "/" Then
myStr = Left(myStr, Len(myStr) - 1)
End If
myHyperlink.Parent.Value = myStr
Next myHyperlink

End Sub


BenJAMMIN wrote:

If you would like to permanently display the path in the
cell (i.e. replace microsoft with www.microsoft.com), right click on the
cell, and use edit hyperlinks. The top pane shows the display name, the
bottom pane shows the path. Copy the path to the display name. I am not
sure if there is a quick way to do this. NOTE: You will have to use keyboard
commands to copy and paste.

This solution works, but it is one by one. Does anyone k now of a mass
change method? I want to take a hyperlinked word (web address or email
address) and have it display the hyperlink properties instead of the word.


--

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
How do I remove hyperlinks westy Excel Discussion (Misc queries) 1 March 20th 05 12:05 AM
How to remove all hyperlinks from a worksheet in Excel? Amos Excel Worksheet Functions 4 March 6th 05 11:16 PM
remove hyperlinks Dave Excel Discussion (Misc queries) 2 March 4th 05 12:40 AM
How to change the Excel Title Bar to show the full file path na... lmilkey8855 Excel Discussion (Misc queries) 2 January 6th 05 03:08 PM
remove all Hyperlinks at one time. afglass Excel Discussion (Misc queries) 2 January 2nd 05 05:47 PM


All times are GMT +1. The time now is 02:58 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"