Find and Replace in all excel files

kimizito

New Member
Joined
Nov 22, 2013
Messages
24
Hi all,

Need a macro/vba/tool that allows me to find and replace in all opened excel files, at once.

If not, an external tool that allow me to drag & drop files, because I have dozens of files in different folders.

Can you help me? Thank you very much :)
 
Last edited:

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
This should loop through open workbooks in your current excel session:

Code:
        Dim CurrExcel As Excel.Application
    
        Set CurrExcel = GetObject(ThisWorkbook.FullName).Application

        For Each wbk in CurrExcel.Workbooks
                For Each wsht in wbk.Worksheets
                          wsht.Cells.Replace What:="Text to Replace", Replacement:="Text to Replace with", LookAt:= _                                  xlPart, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
                                  ReplaceFormat:=False
                Next
        Next

End Sub
 
Upvote 0

Forum statistics

Threads
1,223,248
Messages
6,171,027
Members
452,374
Latest member
keccles

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