Find/Replace for multiple values at once

Jl23

New Member
Joined
Feb 9, 2023
Messages
10
Office Version
  1. 365
Platform
  1. Windows
I'm looking for a simple find and replace but for multiple values at once. I know I could just use the find/replace function in Excel but I am changing the same 3 values in over a hundred workbooks so thought a macro would be faster. (Though at this point I've probably spent more time trying to figure it out than if I just did it manually, lol). My values to replace are always in Column A, AC & AE, last row with data varies. My changes are always:

-In Column A change True to False
-In Coumns AC & AE change No to False

Bonus if the macro could also delete the first 2 rows as well :)

Any help would be greatly appreciated!! Thank you!!
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Try:
VBA Code:
Sub ReplaceValues()
    Application.ScreenUpdating = False
    Columns("A").Replace "True", "False", xlWhole, , False
    Columns("AC").Replace "No", "False", xlWhole, , False
    Columns("AE").Replace "No", "False", xlWhole, , False
    Rows("1:2").Delete
    Application.ScreenUpdating = True
End Sub
 
Upvote 0
Solution

Forum statistics

Threads
1,225,739
Messages
6,186,738
Members
453,369
Latest member
juliewar

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