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:

[TABLE="width: 500"]
<tbody>[TR]
[TD]Find[/TD]
[TD]Replace[/TD]
[/TR]
[TR]
[TD]AAA.BBBB.CCCC.00001[/TD]
[TD]
HTML:
AAA.BBBB.CCCC.00001
[/TD]
[/TR]
[TR]
[TD]AAA.DDDD.EEEE.000001[/TD]
[TD]
HTML:
AAA.BBBB.CCCC.000001
[/TD]
[/TR]
</tbody>[/TABLE]

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

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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