Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
dan dan is offline
external usenet poster
 
Posts: 113
Default Excel Combo Box - Data format

I have a Combo Box that has a linked cell reference to a
cell that contains a date value. The Date Value is "=NOW
()" by the way.

The combo box is displaying the numeric date value - how
can I format this to read as a date?

I also wanted to then use an up down control (or even
better one of those controls that lets you pick a date
off of a calendar).

So how do I make it display a date and how do I let the
user modify this existing date?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default Excel Combo Box - Data format

Hi Dan,

You can use Format function and Change event.
Place this code in worksheet module(or Userform modele??, I'm not sure where
the combobox is.)

Private Sub ComboBox1_Change()
ComboBox1.Value = Format(ComboBox1.Value, "d/m/yyyy") 'Change here as
you like!
End Sub


--
Kind Regards
Colo
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Colo of 'The Road of The Cell Masters' :)

URL:http://www.interq.or.jp/sun/puremis/...astersLink.htm


/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/


"Dan" wrote in message
...
I have a Combo Box that has a linked cell reference to a
cell that contains a date value. The Date Value is "=NOW
()" by the way.

The combo box is displaying the numeric date value - how
can I format this to read as a date?

I also wanted to then use an up down control (or even
better one of those controls that lets you pick a date
off of a calendar).

So how do I make it display a date and how do I let the
user modify this existing date?

Thanks


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
Format a combo box to show mmm-yyyy format Gai Excel Discussion (Misc queries) 1 March 7th 07 03:06 AM
Can one combo box control the data in a different combo box MarkM Excel Discussion (Misc queries) 5 October 9th 06 11:44 AM
add data to combo box in excel then invoke macro Richard Excel Worksheet Functions 1 December 11th 05 08:50 PM
Data Validation or Conditional Format (or combo of) Scott Excel Worksheet Functions 3 November 3rd 05 03:57 PM
How can I avoid excel saving xla combo data? jess Excel Programming 0 November 11th 03 09:54 AM


All times are GMT +1. The time now is 02:19 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"