Grab the Free VBA Quick Reference Guide
chrisjterrell....
In this Video we use use the input box to collect a date and validate that a date is entered
Code
Sub InputboxStuff()
Dim dte As Date
mbox = InputBox("Enter a date", "Dates are cool")
If IsDate(mbox) Then
dte = CDate(mbox)
Range("C9") = dte
Else
MsgBox "This isn't a date. Try Again"
End If
End Sub
3 окт 2024