Hi,
I have inserted a Date and Time Picker on a userform so that the user can choose a date and then populate it to a cell on a worksheet.
The code is as follows:
Private Sub CommandButton1_Click()
Unload Me
Dim FechaAsiento As Date
FechaAsiento = DTPicker1.Value
Windows(ThisWorkbook.Name).Activate
Range("D3080") = FechaAsiento
End Sub
The problem that I have is that the value entered in D3080 is always zero, no matter what the chosen date is.
Any help?
Bookmarks