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

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
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,214,606
Messages
6,120,488
Members
448,967
Latest member
visheshkotha

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