Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default dates in a combo box

Actually, that is the date serial number. This is how dates are stored.

The easiest approach in my opinion is to load the box with strings rather
than dates.

Private Sub Userform_Initialize()
Dim rng as Range, Dim cell as Range
set rng =Worksheets("Sheet1").Range("A1:A10")
for each cell in rng
useform1.combobox1.AddItem rng.Text
Next
End sub


--
Regards,
Tom Ogilvy



"Kevin Smith" wrote in message
...
Hi,

Hopefully a quick one. I have a combo box and the contents
of the list within the combo box are dates. When a date is
selected however, in the combo box, the result is in the
1900 date format (is that right). e.g. September 1st 2003
reads 37865. I have had a look in the combo box properties
but no avail. Is there a way that 1st September 2003 can
read 1st September 2003 when it is selected?

Cheers

Kevin



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
linking a form combo box... results from the combo box to another Trey Excel Discussion (Misc queries) 1 July 15th 07 01:58 AM
combo reference on another combo box for picking address etc. kbjin Excel Worksheet Functions 1 December 8th 06 03:29 PM
"Combo Box - getting control combo box to stick in place in worksh ajr Excel Discussion (Misc queries) 1 February 16th 05 02:05 AM
"Combo Box - getting control combo box to stick in place in worksh ajr Excel Discussion (Misc queries) 0 February 15th 05 07:45 PM
Combo Box Showing numbers not dates Mo Excel Discussion (Misc queries) 1 December 14th 04 05:39 PM


All times are GMT +1. The time now is 05:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"