Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-17-2014, 09:19 AM
ItsChris ItsChris is offline Mass Change of Text to Display in Hyperlink to actual address Windows 8 Mass Change of Text to Display in Hyperlink to actual address Office 2013
Novice
Mass Change of Text to Display in Hyperlink to actual address
 
Join Date: Oct 2014
Posts: 2
ItsChris is on a distinguished road
Default Mass Change of Text to Display in Hyperlink to actual address

Hi, I've inherited an inventory list that has a field (column) with a hyperlink to the online item. The Text to Display section is standard for all items "View Vehicle" with a unique Address URL for each item. I would like to have the actual URL address show vs "View Vehicle"



Without going item by item for hundreds of lines, is there a way to mass update?

Reason I need to show the URL address is I need to update components of the address - basically a find and replace action.

Using Excel 2013

Thank you for your help.
Chris
Reply With Quote
  #2  
Old 10-17-2014, 10:26 PM
macropod's Avatar
macropod macropod is offline Mass Change of Text to Display in Hyperlink to actual address Windows 7 64bit Mass Change of Text to Display in Hyperlink to actual address Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Changing the display text for all hyperlinks requires a macro:
Code:
Sub Demo()
Dim hLnk As Hyperlink
For Each hLnk In ActiveSheet.Hyperlinks
    hLnk.TextToDisplay = hLnk.Address
Next
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 10-18-2014, 10:46 AM
ItsChris ItsChris is offline Mass Change of Text to Display in Hyperlink to actual address Windows 8 Mass Change of Text to Display in Hyperlink to actual address Office 2013
Novice
Mass Change of Text to Display in Hyperlink to actual address
 
Join Date: Oct 2014
Posts: 2
ItsChris is on a distinguished road
Default

thank you - very much appreciated.

Any hints for a macro that will automatically do find and replace actions throughout worksheet?

ie: Find domain.com and replace with xyzaddress.ca

again, thank you for your help.
Reply With Quote
  #4  
Old 10-18-2014, 01:35 PM
macropod's Avatar
macropod macropod is offline Mass Change of Text to Display in Hyperlink to actual address Windows 7 64bit Mass Change of Text to Display in Hyperlink to actual address Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

It would have been helpful had you said you wanted to do that. Assuming these domain names are only in the hyperlinks, try:
Code:
Sub Demo()
Dim hLnk As Hyperlink
For Each hLnk In ActiveSheet.Hyperlinks
  With hLnk
    .Address = Replace(.Address, "domain.com", "xyzaddress.ca")
    .TextToDisplay = .Address
  End With
Next
End Sub
For anything else, you could use Find/Replace
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Text To Hyperlink abraxis Outlook 0 10-09-2014 08:24 AM
Add link to email address that hides the actual address or makes it inaccessible to online bots richiebabes Word 1 09-03-2014 03:22 PM
Mass Change of Text to Display in Hyperlink to actual address Delete specific mass text on document JadeRisley Word 4 07-17-2013 11:11 PM
Mass Change of Text to Display in Hyperlink to actual address How do you mass change "Text to Display" on hyperlinks lvillanueva5 Mail Merge 1 09-10-2012 05:32 PM
Can't change period when adjusting actual time in Web Access chip_saffire Project 0 10-04-2011 12:05 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:24 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft