JARichard74
Board Regular
- Joined
- Dec 16, 2019
- Messages
- 114
- Office Version
- 365
- Platform
- Windows
Very simple code but can't figure out why this one works
But this one does not
I want to do the find and replace from column J onward
VBA Code:
If ThisWorkbook.Worksheets("Prep").Range("E5").Value = "English" Then
ThisWorkbook.Worksheets("All").UsedRange.Replace What:="Majoration", Replacement:="Markup", LookAt:=xlWhole
Else
ThisWorkbook.Worksheets("All").UsedRange.Replace What:="Markup", Replacement:="Majoration", LookAt:=xlWhole
End If
But this one does not
Code:
If ThisWorkbook.Worksheets("Prep").Range("E5").Value = "English" Then
ThisWorkbook.Worksheets("All").Range("J1:DZ200").Replace What:="Majoration", Replacement:="Markup", LookAt:=xlWhole
Else
ThisWorkbook.Worksheets("All").Range("J1:DZ200").Replace What:="Markup", Replacement:="Majoration", LookAt:=xlWhole
End If
I want to do the find and replace from column J onward