Help...Multiple workbooks linked to master work book<--huge file; after renaming, loses linked cells

lbillie

New Member
Joined
Jun 21, 2013
Messages
28
I really need help in creating a macros. I have a master workbook<--huge file. Project 1 workbook is where the user may pick selection using check box application. Depending on what selection the user chooses in Project 1 workbook, it grabs all picturelookups, formulas, calculations from the master workbook. When I rename the Project 1 workbook to Project 2 workbook, I lose the link to the master workbook. Is there a macros to keep the Project X linked to the master workbook? This is the macros I've created to input data into the master workbook to allow all formulas and pictures to populate in Project 1 workbook. I don't want to combine as 1 spreadsheet because, there is going to be multiple project names based on the order the user selects. It would take up too much memory in the server.Sub projectxupdate()
'
' projectxupdate Macro
'
'
ActiveWindow.WindowState = xlNormal
Workbooks.Open Filename:="C:\MASTERFILE.xlsx"
Windows("PROJECT1.xlsm").Activate
Range("A7:A12").Select
Selection.Copy
Windows("MASTERFILE.xlsx").Activate
ActiveSheet.Paste Link:=True
Windows("PROJECT1.xlsm").Activate
Windows("MASTERFILE.xlsx").Activate
ActiveWindow.WindowState = xlMinimized
ActiveWindow.WindowState = xlMaximized
Range("B5").Select
End Sub

Sub projectxupdate()
'
' projectxupdate Macro
'
'
ActiveWindow.WindowState = xlNormal
Workbooks.Open Filename:="C:\MASTERFILE.xlsx"
Windows("PROJECT1.xlsm").Activate
Range("A7:A12").Select
Selection.Copy
Windows("MASTERFILE.xlsx").Activate
ActiveSheet.Paste Link:=True
Windows("PROJECT1.xlsm").Activate
Windows("MASTERFILE.xlsx").Activate
ActiveWindow.WindowState = xlMinimized
ActiveWindow.WindowState = xlMaximized
Range("B5").Select
End Sub
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,215,608
Messages
6,125,820
Members
449,265
Latest member
TomasTeix

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top