with the code
Sub HideGroupBox() If Cells(1, "I").Value = "2" Then
msgbox "hello" DayBox.Visible = False Else
msgbox "hello else" DayBox.Visible = True End If
msgbox "end" End Sub
it says hello then it says run time error '424' object required
and hilights DayBox.Visible = False in yellow.
any more help
|