I have recorded the below macro to update a search and replace for a range of cells.
Sub time()
'
' time Macro
'
' Keyboard Shortcut: Ctrl+Shift+P
'
ActiveSheet.Range("$R$34:$Z$49").AutoFilter Field:=2
Range("T34:Z49").Select
Range("T49").Activate
Selection.Replace What:="$5", Replacement:="$6", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False, FormulaVersion:=xlReplaceFormula2
ActiveSheet.Range("$R$34:$Z$49").AutoFilter Field:=2, Criteria1:="<>"
End Sub
Is there a way to make the macro increase the 'What' and 'Replacement' by 1 everytime I run it? So if I ran the macro again the Selection. Replace line would read Selection.Replace What:="$6", Replacement:="$7", LookAt:=xlPart, _
Sub time()
'
' time Macro
'
' Keyboard Shortcut: Ctrl+Shift+P
'
ActiveSheet.Range("$R$34:$Z$49").AutoFilter Field:=2
Range("T34:Z49").Select
Range("T49").Activate
Selection.Replace What:="$5", Replacement:="$6", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False, FormulaVersion:=xlReplaceFormula2
ActiveSheet.Range("$R$34:$Z$49").AutoFilter Field:=2, Criteria1:="<>"
End Sub
Is there a way to make the macro increase the 'What' and 'Replacement' by 1 everytime I run it? So if I ran the macro again the Selection. Replace line would read Selection.Replace What:="$6", Replacement:="$7", LookAt:=xlPart, _