hrosenb1016
New Member
- Joined
- Dec 11, 2014
- Messages
- 2
I am trying to do a giant find and replace in VBA. It takes hours. I have to find and replace 2 areas in each formula of each cell. The parts I am changing link to other sheets. When I change the first part (Oct to Nov) but not the second (10-31 to 11-30) I get a popup notification which I turned off. All of the cells don't link to the same sheet otherwise that would probably be easier. Any suggestions?? Please!
Sub FindandReplace()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Application.DisplayAlerts = False
Range("A:C").Replace What:="Oct", Replacement:="Nov", _
LookAt:=xlPart, MatchCase:=False
Range("A:C").Replace What:="10-31", Replacement:="11-30", _
LookAt:=xlPart, MatchCase:=False
Application.EnableEvents = True
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
Application.CalculateFull
Application.DisplayAlerts = True
End Sub
Sub FindandReplace()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Application.DisplayAlerts = False
Range("A:C").Replace What:="Oct", Replacement:="Nov", _
LookAt:=xlPart, MatchCase:=False
Range("A:C").Replace What:="10-31", Replacement:="11-30", _
LookAt:=xlPart, MatchCase:=False
Application.EnableEvents = True
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
Application.CalculateFull
Application.DisplayAlerts = True
End Sub