need help with macro

danmen

Board Regular
Joined
Jan 15, 2009
Messages
217
I have a workbook with five tabs one of which is called BASE DATA. I would like to change the word BASE DATA to SETUP. I'm looking for a macro that will seek and change all occurrences of the word throughout the workbook ( everywhere like cell formulae and vba coding and everywhere else ). Is there an easy way to do this?

thx. for any help!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
If you change the tab name yourself, all the formulas will update automatically (unless you've made use of the indirect() formula, which could potentially cause issues)

As for any vb, you could just use find/replace in your modules.

HTH
 
Upvote 0
If your cell formulas are referencing this sheet directly, then renaming it will cause them to adjust automatically. As for macros, just do Edit/Replace on the whole project.
 
Upvote 0
unfortunately I have a lot of indirect statements that will not change to the new tab name, is there any way to make it work? thx. again
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,534
Messages
6,179,390
Members
452,909
Latest member
VickiS

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