Hi,
I'm new to this forum and only starting out with VBA in excel and I am wondering if anyone here can help me.
I am looking for a bit of code to search an external link e.g. U:/Workbooks/[Example123456.xls]Sheet1'!$E$10
and replace the 123456 only with a cell ref. for example:
if
A2 = 654321
then
link=U:/Workbooks/[Example654321.xls]Sheet1'!$E$10
if
A2 = 555555
then
link=U:/Workbooks/[Example555555.xls]Sheet1'!$E$10
the numbers are always 6 chars long and I need it to do this across serveral sheets
A1=Sheet1 A1:O40
A2=Sheet2 A1:O40
and so on.
This is what I have currently
Many thanks in advance
Graham
Bookmarks