Macro to use cell references and text to replace words in workbook

Status
Not open for further replies.

poitbot

New Member
Joined
Nov 22, 2006
Messages
34
Hello,

I have data listed in a worksheet that contains text in the first column that needs to be replaced throughout the entire workbook.

The data looks similar to this:

Sun, $D$8#Home, $B$42#WWB, $B$3#Definitions
Earth, $D$18#Summary, $B$3#Page 1, $B$42#Classroom
Ball, $E$27#Home, $B$4#WWB

The first column being a piece of text to be replaced in the workbook on multiple worksheets. The second, third, fourth, etc... columns are the cell addresses and worksheets separated by the "#" (Pound) sign.

So if "Sun" was to be changed to "star" the script would change the word sun in the worksheet Home and cell reference D8 to star.

Thanks,

Poit
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Status
Not open for further replies.

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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