Skip Bisconer
Active Member
- Joined
- Jun 14, 2002
- Messages
- 263
I have a multipage form to enter maintenance data onto a spreadsheet and I am having a problem getting the correct results from a textbox with a date mm/dd/yy to enter into a cell. The result I am getting in Cells(NextRow, 1) for the date 12/27/03 is "27ate". For 01/04/04 is "4ate".
I have tried dropping the format line and just formatting the column in the speadsheet and that doesn't make any difference. There are no other references to Cells(NextRow, 1) in my VBA for this page.
I am baffled. Any help out there?
Sheets("Dodge").Activate
NextRow = Application.WorksheetFunction.CountA(Range("A:A")) + 1
' Apply user entry to form to Dodge worksheet
Cells(NextRow, 1) = txtDateD
Cells(NextRow, 1) = Format(Cells(NextRow, 1), "Date")
I have tried dropping the format line and just formatting the column in the speadsheet and that doesn't make any difference. There are no other references to Cells(NextRow, 1) in my VBA for this page.
Sheets("Dodge").Activate
NextRow = Application.WorksheetFunction.CountA(Range("A:A")) + 1
' Apply user entry to form to Dodge worksheet
Cells(NextRow, 1) = txtDateD
Cells(NextRow, 1) = Format(Cells(NextRow, 1), "Date")