Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Date problem
I have written a VB program using inputboxes for the entry of data into a very large spreadsheet. I have formatted the spreadsheet in all aspects. For some reason if i now enter a date using the inputboxes e.g 12/03/2007 it shows in the spreadsheet as 03/12/2007, i have checked the formatting of the spreadsheet and it is correct but for some reason when i inputbox method entry it changes. In addition if i manually enter the date into the spreadsheet no problem. COnfused!!! what am i missing??? *** Sent via Developersdex http://www.developersdex.com *** |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Date problem
US Dates in VBA.
Try putting the textbox value into the cell via a date variable Dim dte As Date dte = TextBox1.Text ActiveCell.Value = dte -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Craig Johnson" wrote in message ... I have written a VB program using inputboxes for the entry of data into a very large spreadsheet. I have formatted the spreadsheet in all aspects. For some reason if i now enter a date using the inputboxes e.g 12/03/2007 it shows in the spreadsheet as 03/12/2007, i have checked the formatting of the spreadsheet and it is correct but for some reason when i inputbox method entry it changes. In addition if i manually enter the date into the spreadsheet no problem. COnfused!!! what am i missing??? *** Sent via Developersdex http://www.developersdex.com *** |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Date problem
|
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Date problem
it worked a treat hooray, thank you very much. *** Sent via Developersdex http://www.developersdex.com *** |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
date problem | Excel Discussion (Misc queries) | |||
Exel increment date problem wrt todays date. | Excel Worksheet Functions | |||
Date Formula Problem - Leave date blank if Null | Excel Worksheet Functions | |||
Us date versus EU date problem | Excel Programming | |||
Date problem | Excel Programming |