ComboBox and "mmm-aa" format

  • Thread starter Thread starter fragher75
  • Start date Start date
F

fragher75

Hello,
I have a problem with the format of value in a combobox.
The range of value in the "ListFillRange" are dates (Jan-02, Feb-0
....).
When I select a value in the combobox, this value changes in a seria
data format (37287,37315 ....)
How can I maintain the "mmm-aa" format ?
Thanks,
Francesc
 
Hi,
I have a problem with the format of value in a combobox.
The range of value in the "ListFillRange" are dates (Jan-02, Feb-02
...).
When I select a value in the combobox, this value changes in a serial
data format (37287,37315 ....)

what do you think about

Private Sub ComboBox1_Change()
ComboBox1.Value = Format(ComboBox1.Value, "dd.mm.yyyy") 'use
whatever format you wish
End Sub

regards

arno
 

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

Back
Top