![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 81
|
Quick question...
Where can I find out about displaying dates in comboboxes, the format changes everytime i use them, how do you control this? Is there a property of the box? Cheers Ed
__________________
Ed Jackson "Do not worry about your problems with mathematics, I assure you mine are far greater." A. Einstien |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Use the Comboboxs change to change the
formating of the dates eg. Private Sub ComboBox1_Change() ComboBox1.Text = Format(ComboBox1.Text, "dd/mm/yyyy") End Sub |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Posts: 81
|
I have tried this but it effects some other calculations, without having to rewrite my logic is there an easy way to solve this problem??
ed |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
What calculations are affected, as you can always change the text back to its original serial date format for calculations eg. CDate(ComboBox1.Text) |
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Posts: 81
|
cheers...
i'll wotk that one! Ed |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|