I could not find a code out there to Find and replace text for two specific worksheets in my workbook - "WTD TNR" sheet & "WTD GDS" sheet.
This is the following code I have found, but need it strictly for those two sheets above:
[FONT="]Sub[/FONT][FONT="] FindReplace()[/FONT]
[FONT="]Dim[/FONT][FONT="] sht [/FONT][FONT="]As[/FONT][FONT="] Worksheet[/FONT]
[FONT="]Dim[/FONT][FONT="] fnd [/FONT][FONT="]As[/FONT][FONT="] [/FONT][FONT="]Variant[/FONT]
[FONT="]Dim[/FONT][FONT="] rplc [/FONT][FONT="]As[/FONT][FONT="] [/FONT][FONT="]Variant[/FONT]
[FONT="]fnd = "Actual"[/FONT]
[FONT="]rplc = "Actuals"[/FONT]
[FONT="]For[/FONT][FONT="] [/FONT][FONT="]Each[/FONT][FONT="] sht [/FONT][FONT="]In[/FONT][FONT="] ActiveWorkbook.Worksheets[/FONT]
[FONT="] sht.Cells.Replace what:=fnd, Replacement:=rplc, _[/FONT]
[FONT="] LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, _[/FONT]
[FONT="] SearchFormat:=[/FONT][FONT="]False[/FONT][FONT="], ReplaceFormat:=False[/FONT]
[FONT="]Next[/FONT][FONT="] sht[/FONT]
[FONT="]End[/FONT][FONT="] [/FONT][FONT="]Sub[/FONT]
This is the following code I have found, but need it strictly for those two sheets above:
[FONT="]Sub[/FONT][FONT="] FindReplace()[/FONT]
[FONT="]Dim[/FONT][FONT="] sht [/FONT][FONT="]As[/FONT][FONT="] Worksheet[/FONT]
[FONT="]Dim[/FONT][FONT="] fnd [/FONT][FONT="]As[/FONT][FONT="] [/FONT][FONT="]Variant[/FONT]
[FONT="]Dim[/FONT][FONT="] rplc [/FONT][FONT="]As[/FONT][FONT="] [/FONT][FONT="]Variant[/FONT]
[FONT="]fnd = "Actual"[/FONT]
[FONT="]rplc = "Actuals"[/FONT]
[FONT="]For[/FONT][FONT="] [/FONT][FONT="]Each[/FONT][FONT="] sht [/FONT][FONT="]In[/FONT][FONT="] ActiveWorkbook.Worksheets[/FONT]
[FONT="] sht.Cells.Replace what:=fnd, Replacement:=rplc, _[/FONT]
[FONT="] LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, _[/FONT]
[FONT="] SearchFormat:=[/FONT][FONT="]False[/FONT][FONT="], ReplaceFormat:=False[/FONT]
[FONT="]Next[/FONT][FONT="] sht[/FONT]
[FONT="]End[/FONT][FONT="] [/FONT][FONT="]Sub[/FONT]