Date problem

  • Thread starter Thread starter Craig Johnson
  • Start date Start date
C

Craig Johnson

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???
 
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Text String to Date 3
Copy the value in the Inputbox 3
Another Date Format issue 1
Find with a variable 3
excel date format problem 1
date tracking 1
How can I stop date formatting? 2
HELP 5

Back
Top