I have the following worksheet change macro in a rota I use,that will scroll to the month selected from a drop down box, it was working fine and all of a sudden today it stopped working, I have checked and its still referencing the correct cells. Also I have checked my macro security settings and there's no change there either. If anybody could help and let me know what could be causing this I would really appreciate it.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rngMonth As Range
If Target.Address(0, 0) = "C2" Then
Set rngMonth = Range("B:B").Find(Target.Value, , , xlWhole, 1, 1, 0)
If Not rngMonth Is Nothing Then Application.Goto rngMonth.EntireRow, Scroll:=True
End If
End Sub
Bookmarks