Hi there,
I am trying to update my formulas in VBA to reflect the current month, by overwriting the previous the now show the current.
Dim FindText as String
Dim ReplaceText as String
FindText = OffsetMonth 'Previous month
ReplaceText = SheetName 'Current month
'Replace current month
Sheets("BY TECH").Range(A1, AT102).Select
Replace What:=FindText, Replacement:=ReplaceText, LookAt:=xlPart, MatchCase:=False
The formulas in the cell look like: ='JAN START'!B4
I am trying to replace everywhere it says JAN with FEB and so on etc.
I keep getting a Named argument not found at the What:= location
Any help would be greatly appreciated!
Thanks
I am trying to update my formulas in VBA to reflect the current month, by overwriting the previous the now show the current.
Dim FindText as String
Dim ReplaceText as String
FindText = OffsetMonth 'Previous month
ReplaceText = SheetName 'Current month
'Replace current month
Sheets("BY TECH").Range(A1, AT102).Select
Replace What:=FindText, Replacement:=ReplaceText, LookAt:=xlPart, MatchCase:=False
The formulas in the cell look like: ='JAN START'!B4
I am trying to replace everywhere it says JAN with FEB and so on etc.
I keep getting a Named argument not found at the What:= location
Any help would be greatly appreciated!
Thanks