Setting cell referencing to different workbook:

pedie

Well-known Member
Joined
Apr 28, 2010
Messages
3,875
Hi,

In book1 and Data.xlsm i have sheets with same names and equal numbers of sheets.
from book 1 i am settings cell referencing of book2 sheet1 A1:C200 for sheet1 A1:C200. which looks like this for now
Code:
=IF([Data.xlsm]MayDat1!A1="","",[Data.xlsm]MayDat1!A1)
here MayDat1 is the name of the current sheet and also name of sheet in Data.xlsm
I need a vba to set cell refercing like this for all the sheets if sheet name matches in Data.xlsm with this workbook names.
If this is possible then please suggest.

Thanks Pedie;)
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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