Hi, when I run the following Macro it runs for the entire worksheet, however I only want it to run in the highlighted column (eg. If I click on column "H" to select the whole column, I do not want the macro to run outside that column).
Here is the macro:
Sub ReplacNames()
'
' ReplaceNames Macro
'
' Keyboard Shortcut: Option+Cmd+Shift+R
'
Cells.Replace What:="NZL", Replacement:="NZ", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace What:="AUS", Replacement:="AU", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
End Sub
Any help much appreciated!
Here is the macro:
Sub ReplacNames()
'
' ReplaceNames Macro
'
' Keyboard Shortcut: Option+Cmd+Shift+R
'
Cells.Replace What:="NZL", Replacement:="NZ", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace What:="AUS", Replacement:="AU", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
End Sub
Any help much appreciated!