ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Edit hyperlinks (https://www.excelbanter.com/excel-programming/341766-edit-hyperlinks.html)

Cadwan

Edit hyperlinks
 
Hi!

I'm just about at wits end trying to find a method of editing 4000+
hyperlinks with variable addresses (eg c:\PO\888_Customer.xls to
c:\_PO\888_Customer.xls or c:\PO\889_customer.xls to c:\_PO\889_customer.xls.
Any suggestions would be enormously appreciated!
--
http://www.fyi.bz

Tom Ogilvy

Edit hyperlinks
 
Perhaps something like:

for each hlink in Activesheet.hyperlinks
sStr = hlink.Address
sStr = Replace(sStr,"\PO\","\_PO\")
hlink.Address = sStr
Next

--
Regards,
Tom Ogilvy

"Cadwan" wrote in message
...
Hi!

I'm just about at wits end trying to find a method of editing 4000+
hyperlinks with variable addresses (eg c:\PO\888_Customer.xls to
c:\_PO\888_Customer.xls or c:\PO\889_customer.xls to

c:\_PO\889_customer.xls.
Any suggestions would be enormously appreciated!
--
http://www.fyi.bz




Cadwan

Edit hyperlinks
 
Thanks Tom! That worked like a champ! I am very grateful!
--
http://www.fyi.bz


"Tom Ogilvy" wrote:

Perhaps something like:

for each hlink in Activesheet.hyperlinks
sStr = hlink.Address
sStr = Replace(sStr,"\PO\","\_PO\")
hlink.Address = sStr
Next

--
Regards,
Tom Ogilvy

"Cadwan" wrote in message
...
Hi!

I'm just about at wits end trying to find a method of editing 4000+
hyperlinks with variable addresses (eg c:\PO\888_Customer.xls to
c:\_PO\888_Customer.xls or c:\PO\889_customer.xls to

c:\_PO\889_customer.xls.
Any suggestions would be enormously appreciated!
--
http://www.fyi.bz






All times are GMT +1. The time now is 04:19 AM.

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