Changing File Names and Linking Cells between workbooks

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I have one master Workbook where I am bringing worksheets in from other
Workbooks. Some of the cells are linked with Name, Date, and Project Number
which resides in the master workbook and must transfer when the worksheet is
brought in.. My Problem is: My master workbook can change names which
affects the linked data file name in the worksheets I am bringing in. The
code in the linked cell reads “ ='Z:\Project Forms XLS\[My Project
Template.xls]Menu'!$E$5 “ but my file name can change. Can I use a variable
or something in my linked data to accommodate changing master worksheet file
names?
 
James:

try it,


ActiveWorkbook.ChangeLink "Z:\Project Forms XLS\My Project Template.xls", _
"Z:\Project Forms XLS\My Project Template-1.xls", xlExcelLinks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top