macro to find and replace cell reference dependent on a cell

shabbs010

New Member
Joined
May 27, 2013
Messages
1
hi
i have a workbook with 13 sheets named 1 to 12 and 13 as yearly.

all the sheet contains a list of same customer at fixed column in every sheet.

now on yearly sheet i have given a cell reference from all 12 sheet.

i just want to replace all the cell reference dependent on a cell on yearly (13 sheet)

for ex
if in 13 yearly sheet i give cell reference in column b as ='1'!a1 in c as ='2'a1 in d as ='3'a1

now i have a lookup in cell a1 as customer code =a

for every customer i have a code that is its column head in every sheet now customer code is "a"

now if the cell a1 value change to "b" than i want a macro to find all "a" in selected range and just replace it with "b"

so now the cell reference will be as b as ='1'!b1 in c as ='2'b1 in d as ='3'b1

plz help
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,215,491
Messages
6,125,101
Members
449,205
Latest member
ralemanygarcia

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