VBA script to find and replace data across sheets in fixed ranges.

Emerlin

Board Regular
Joined
Jan 8, 2007
Messages
117
Office Version
  1. 2016
Platform
  1. Windows
H - I would like to have a VBA script the I can define locked target ranges to look in, find a specific value in those ranges and replace it with a desired value. I will eventually add this to a button. I have found some script that adds a prompt you for the desired ranges, but I am hoping in can be simplified in the script.

Thanks in advance for your help!

ECR_CheatSheet.xlsm
ABCDEF
1
2Target Range 1 (TR1)Target Range 2 (TR2)FIND in TR1 and TR2REPLACE in TR1 and TR2
3Christian McCaffreyMarvin Harrison Jr.Tyrone Tracy Jr.Tyrone Tracy
4D.J. MooreOdell Beckham Jr.Brian Robinson Jr.Brian Robinson
5Tyreek HillDrake LondonA.J. DillonAJ Dillon
6Bijan RobinsonDerrick HenryKenneth Walker IIIKenneth Walker
7Breece HallDavante AdamsD.J. MooreDJ Moore
8D.J. Chark Jr.Kyren WilliamsMarvin Mims Jr.Marvin Mims
9Amon-Ra St. BrownMarvin Mims Jr.Marvin Harrison Jr.Marvin Harrison
10Justin JeffersonChris OlaveD.K. MetcalfDK Metcalf
11A.J. BrownA.J. DillonD.J. Chark Jr.DJ Chark
12Garrett WilsonCooper KuppMichael Pittman Jr.Michael Pittman
13Jonathan TaylorDalton KincaidCalvin Austin IIICalvin Austin
14Saquon BarkleyIsiah PachecoOdell Beckham Jr.Odell Beckham
15Jahmyr GibbsMark AndrewsBrian Thomas Jr.Brian Thomas
16Brian Thomas Jr.Mar'Keise IrvingMar'Keise IrvingBucky Irving
17Sam LaPortaJaylen Waddle
18Travis KelceNico Collins
19
Name Change
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
I should also add - the Find and Replace data will be on a different sheet (same workbook) than the TR1 and TR2.
 
Upvote 0

Forum statistics

Threads
1,221,418
Messages
6,159,791
Members
451,589
Latest member
Harold14

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