VBA code to update formula cell reference

Andymac86

New Member
Joined
Aug 9, 2011
Messages
3
MSXL2007

I have created a macro to copy the active sheet to the end of the workbook.
Within the worksheet there is the following formula:

=IF(ISNA(INDEX('Equipment Master'!$BW$11:$BW$137,MATCH('Sheet A'!D15,seriallist,FALSE),1)),"0",(INDEX('Equipment Master'!$BW$11:$BW$137,MATCH('Sheet A'!D15,seriallist,FALSE),1)))


The formula above references row BW from the "equipment Master Sheet". For the new sheet i need it to update the formula to row BX from the "Equipment Master" Sheet.

This needs to be automated for each new sheet - step one row to the right.

Can anybody throw a code my way which can help solve my dilemma?

I'm fairly new to VBA so please be gentle.

Thanks
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,224,583
Messages
6,179,673
Members
452,937
Latest member
Bhg1984

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