i'm new about VBA for Excel so i kindly ask your support, i've created a form with a field text and a button.
I manually write a date in the text field and i push the botton in order to transfer this date to excel worksheet but it doesn't happen, the cell is activated but this strange date appear: 00/01/1900
Private Sub CommandButton1_Click()
Dim dateins As Date
Range("A1").NumberFormat = "mm/dd/yyyy"
textfield.Text = dateins
Sheets("foglio1").Range("a1").Value = dateins
Thans in advance for your help!.
Marco
I manually write a date in the text field and i push the botton in order to transfer this date to excel worksheet but it doesn't happen, the cell is activated but this strange date appear: 00/01/1900
Private Sub CommandButton1_Click()
Dim dateins As Date
Range("A1").NumberFormat = "mm/dd/yyyy"
textfield.Text = dateins
Sheets("foglio1").Range("a1").Value = dateins
Thans in advance for your help!.
Marco