Hi,
Can anyone help me with my problem.
I have a userform with commandbutton. I just want when the userform initialize and if the pc time is 9:00 PM and the commandbutton is
unclicked, msgbox will display "Unclicked" else do nothing.
Something like this, but i can't get the right syntax:
![]()
Private Sub UserForm_Initialize() 'if the PC time is = 9:00 PM and CommandButton1 is unclicked then 'msgbox "Unclicked!" 'Else 'Do nothing End Sub
Bookmarks