I have a macro enabled workbook, and in the past it has always worked fine, but ever since I had a windows update the macro has caused the workbook to crash, giving me an error of "Run-time error '424': Object Required." I cant seem to figure out why my code in no longer working. Here is my code.
Private Sub Worksheet_Change(ByVal Target As Range)
'Rage Button
If Cells(1, 12).Value = "Barbarian" Then 'CHANGE THE CELL TO THE ADRESS OF THE TRIGGER CELL
Rage.Visible = True 'CHANGE TO THE NAME OF THE BUTTON
Else
Rage.Visible = False 'CHANGE TO THE NAME OF THE BUTTON
End If
'Raging Brutality
If Cells(1, 12).Value = "Barbarian" Then
If WorksheetFunction.CountIf(Range(Cells(40, 1), Cells(61, 1)), "Raging Brutality") Then
Brutality.Visible = True
Else
Brutality.Visible = False
End If
Else
Brutality.Visible = False
End If
'Sneak Button
If Cells(1, 12).Value = "Rogue" Then 'CHANGE THE CELL TO THE ADRESS OF THE TRIGGER CELL
Sneak.Visible = True 'CHANGE TO THE NAME OF THE BUTTON
Else
Sneak.Visible = False 'CHANGE TO THE NAME OF THE BUTTON
Cells(25, 7).Value = 0
End If
End Sub