VBA Define the date with day, month and year

Опубликовано: 13 Май 2026
на канале: Simplified Excellence
55
0

Define a date by specifying the day, month and year in your code.

Code:
Sub define_date()

Dim myDate As Date

'set my date with coded Year, Month and Day
myDate = DateSerial(2019, 1, 15)

'message
MsgBox ("Date is: " & myDate)

End Sub

-------------------------------
NEED HELP?
-------------------------------
Leave a comment with your questions, issues or projetcs and I will try to answer with a video.

-------------------------------
THANK YOU
-------------------------------
For watching my videos,
Your shares
And your comments!