My code:
txtDateADD is a textbox where the user enters a date.
what I need to go into the cell (llRow, 2) when a commandbutton is clicked and the data is copied to my worksheet, is a date & time that looks like and is formatted like this:
1/15/2019 11:33:52 AM
but what i get is this:
1/15/2019
An exact time is not important... just whatever the current time (now) is will suffice.
Please and Thank you for your assistance.
Keith
Code:
With Cells(llRow, 2)
.Value = CDate(txtDateADD.Value)
.NumberFormat = "mm/dd/yyyy hh:mm"
End With
txtDateADD is a textbox where the user enters a date.
what I need to go into the cell (llRow, 2) when a commandbutton is clicked and the data is copied to my worksheet, is a date & time that looks like and is formatted like this:
1/15/2019 11:33:52 AM
but what i get is this:
1/15/2019
An exact time is not important... just whatever the current time (now) is will suffice.
Please and Thank you for your assistance.
Keith