Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Combobox and data values


Excuse me, I retry to post this thread....

I have a problem with the format of the values in a combobox.
The range of values 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 ....)

Arno suggests:

Private Sub ComboBox1_Change()
ComboBox1.Value = Format(ComboBox1.Value, "dd.mm.yyyy")
End Sub

But in this way, after the selection, in the linked cell, I see onl
this year dates!!!
My dates start from 2002!!!

Help me, please.. And excuse me for reply of this thread.
Bye, Francesco

--
fragher7
-----------------------------------------------------------------------
fragher75's Profile: http://www.excelforum.com/member.php...fo&userid=1236
View this thread: http://www.excelforum.com/showthread.php?threadid=27073

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Combobox and data values

Jan-02 is interpreted by excel as Jan 2, 2004

If you insist on displaying a format like Jan-02 in the combobox, then you
won't be able to correct this problem. Why not display it as Jan-2002

Private Sub ComboBox1_Change()
ComboBox1.Value = Format(ComboBox1.Value, "mmm-yyyy")
End Sub


or if you are willing to display the day

Private Sub ComboBox1_Change()
ComboBox1.Value = Format(ComboBox1.Value, "d-mmm-yyyy")
End Sub


--
Regards,
Tom Ogilvy






"fragher75" wrote in message
...

Excuse me, I retry to post this thread....

I have a problem with the format of the values in a combobox.
The range of values 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 ....)

Arno suggests:

Private Sub ComboBox1_Change()
ComboBox1.Value = Format(ComboBox1.Value, "dd.mm.yyyy")
End Sub

But in this way, after the selection, in the linked cell, I see only
this year dates!!!
My dates start from 2002!!!

Help me, please.. And excuse me for reply of this thread.
Bye, Francesco.


--
fragher75
------------------------------------------------------------------------
fragher75's Profile:

http://www.excelforum.com/member.php...o&userid=12360
View this thread: http://www.excelforum.com/showthread...hreadid=270735



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
using VBA to retrieve values to ComboBox Serene Excel Discussion (Misc queries) 0 March 19th 10 02:21 AM
Omitting Duplicate values using a ComboBox or Data Validation PCLIVE Excel Discussion (Misc queries) 1 October 3rd 08 06:28 PM
Values of ComboBox fields and SQL Ant(antonfh_at_gmail_dot_com) Excel Discussion (Misc queries) 3 May 23rd 06 02:03 PM
ComboBox Values Jim Berglund Excel Programming 4 August 17th 04 10:18 PM
ComboBox Values Darren[_3_] Excel Programming 1 July 16th 03 10:41 AM


All times are GMT +1. The time now is 03:42 AM.

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

About Us

"It's about Microsoft Excel"