Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vba and links

Status
Not open for further replies.

RicksAtWork

Programmer
Nov 1, 2005
120
GB
I have a work sheet which contains a bunch of links.

These have been created via:

targetWorkSheet.Hyperlinks.Add Anchor:=Range(cl.Address), Address:=ThisWorkbook.Name, SubAddress:="Data!" & cl2.Address

This works fine.

However, when the data in this sheet is copied to a new work book, the links no longer work, because the links contain the name of the old workbook. Is there a way of updating this links via vba?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top