Okay,
wb1 is a template file (or a home workbook with multiple functions).
wb2 is a savecopyas wb that is made via macro within wb1. It is a slimmed down version made from a template within wb1
wb3 is a data file only.
Hyperlinks within wb1 are set to wb3 at it's address (fixed).
When wb2 is created via macro, the hyperlinks change address related to where wb2 is saved. I want them to remain fixed with where wb3 is.
the correct link is as follows (as taken from wb1):
=IF(ISNA(HYPERLINK(VLOOKUP(S44,'K:\swi\[SWIDATA.xlsm]Links'!$A$2:$B$9990,2,FALSE),Q44)),"",HYPERLINK(VLOOKUP(S44,'K:\swi\[SWIDATA.xlsm]Links'!$A$2:$B$9990,2,FALSE),Q44))
The incorrect link as created when the new workbook is made is as follows:
=IF(ISNA(HYPERLINK(VLOOKUP(S44,'K:\swi\Claim File Master\Claim Files\464004\[SWIDATA.xlsm]Links'!$A$2:$B$9990,2,FALSE),Q44)),"",HYPERLINK(VLOOKUP(S44,'K:\StillwaterInsurance\Claim File Master\Claim Files\464004\[SWIDATA.xlsm]Links'!$A$2:$B$9990,2,FALSE),Q44))
Claim File Master\Claim Files\464004 is clearly added because that is where the new wb2 is located. How do I stop this?
NOTE: i am open to suggestions (either vba when i create the copy or Excel in changing the template), thus the reason this has been posted in the VBA forum. I was unable to find a solution to this issue through days of research.
Thanks,
Darren
Bookmarks