Right now, I have a spreadsheet that opens another spreadsheet and searches for information. Sorta like this:
Workbooks.Open ("master.xls")
With Worksheets("Sheet1").Range("F3:F1000")
Set c = .find(myvariable, LookIn:=xlValues)
The problem is, Master.xls is a Date-coded name which changes periodically, and I have 1000's of Spreadsheets that reference that Master.xls. So when it's name changes, I have to cut and paste it's name into all of those files.
Is there a way to store that in a variable that can be changed from outside? What I mean is, can I make a VB code in some temp Excel file that has the new information, make a loop that opens all of the files, changes the name of Master.xls in the code, saves it and closes it? I know I can do it by placing the name in a cell in Excel, but that's not very tidy. Another way is to make a cell value reference some master directory sheet cell
In a cell "Z100" ='[Directory.xls]Sheet1'!$A$1
But that's slow, as we run these sheets on "Cube" terminals, and it takes minutes to open them if they have to reference more than one seperate file.
Any suggestions??
Thanks in advance,
Steve
Workbooks.Open ("master.xls")
With Worksheets("Sheet1").Range("F3:F1000")
Set c = .find(myvariable, LookIn:=xlValues)
The problem is, Master.xls is a Date-coded name which changes periodically, and I have 1000's of Spreadsheets that reference that Master.xls. So when it's name changes, I have to cut and paste it's name into all of those files.
Is there a way to store that in a variable that can be changed from outside? What I mean is, can I make a VB code in some temp Excel file that has the new information, make a loop that opens all of the files, changes the name of Master.xls in the code, saves it and closes it? I know I can do it by placing the name in a cell in Excel, but that's not very tidy. Another way is to make a cell value reference some master directory sheet cell
In a cell "Z100" ='[Directory.xls]Sheet1'!$A$1
But that's slow, as we run these sheets on "Cube" terminals, and it takes minutes to open them if they have to reference more than one seperate file.
Any suggestions??
Thanks in advance,
Steve