Find and Replace strings in all worksheets in all workbooks in folder

rmk911

New Member
Joined
Apr 8, 2018
Messages
3
Hi there

I have an excel spread sheet containing a table like so:

FindReplace
AAA.BBBB.CCCC.00001
HTML:
AAA.BBBB.CCCC.00001
AAA.DDDD.EEEE.000001
HTML:
AAA.BBBB.CCCC.000001

<tbody> </tbody>

where A, B, C, D, E represent any letter, and 00001/000001 represent any number. The strings will always be either the length of the first or second cells in the left column. The replace column contains the strings formatted to appear as a hyperlink.

I also have a folder of excel documents, each containing multiple worksheets, with these strings located in cells all over the workbooks. The strings only exist in one cell each; that is, the strings may appear multiple times, but the cell in which they appear contain only 1 string.

I want to be able to do a mass find and replace using vba (or any other automated solution) across this whole folder, using the values in the original spreadsheet containing the find and replace table.

Is this possible? If I can't do it for the whole folder, is it possible to run something that would achieve this for each excel document separately?

Many thanks
rmk911
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,215,453
Messages
6,124,918
Members
449,195
Latest member
Stevenciu

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