How to remove links to the the old workbook (A) after copying the sheets into a new workbook(B)?

calc

New Member
Joined
Aug 10, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I am copying some sheets from A with macros into B. I don't want these macros/formulas to have any linking to the old workbook(A) anymore after it is copied into B. Can someone help me in how to achieve it?
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
I am copying some sheets from A with macros into B. I don't want these macros/formulas to have any linking to the old workbook(A) anymore after it is copied into B. Can someone help me in how to achieve it?
What do you want to do with macros and/or formulas in sheets copied to workbook B that refer to sheets in workbook A that aren't copied to workbook B?
 
Upvote 0
What do you want to do with macros and/or formulas in sheets copied to workbook B that refer to sheets in workbook A that aren't copied to workbook B?
Actually i have to copy all the sheets, kind of merge the A with B.
 
Upvote 0
Actually i have to copy all the sheets, kind of merge the A with B.
You would need to replace all the references to Book A in Book B. For formulas, using Find and Replace (ctrl+h), for example you might find all formulas that contain: [BookA.xlsm] and replace it with nothing (leave Replace input blank).
 
Upvote 0

Forum statistics

Threads
1,215,528
Messages
6,125,342
Members
449,218
Latest member
Excel Master

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