Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Format date in combobox

Im trying to have a date displayed in the combox as wednesday,
September6. How could I go about doing this
I have tried the format(date, yyyy etc method and it works for
combobox4 but cant use that in combobox3 below.
ie combobox 4 is the start date
comboboxx3 is the end date. I want the enddate selection to begin
with the value enter in cobobox4

Thanks
Mike

Private Sub ComboBox3_DropButtonClick()
Dim leavingdate As Date

leavingdate = ComboBox4.Value
ComboBox3.List = Array(leavingdate, leavingdate + 1, leavingdate + 2)
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 380
Default Format date in combobox

Private Sub ComboBox3_DropButtonClick()
Dim leavingdate As Date

leavingdate = ComboBox4.Value
ComboBox3.List = Array(Format(leavingdate, "mmmm d"), _
Format(leavingdate + 1, "mmmm d"), _
Format(leavingdate + 2, "mmmm d"))
End Sub


--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"susan" wrote in message
...
Im trying to have a date displayed in the combox as wednesday,
September6. How could I go about doing this
I have tried the format(date, yyyy etc method and it works for
combobox4 but cant use that in combobox3 below.
ie combobox 4 is the start date
comboboxx3 is the end date. I want the enddate selection to begin
with the value enter in cobobox4

Thanks
Mike

Private Sub ComboBox3_DropButtonClick()
Dim leavingdate As Date

leavingdate = ComboBox4.Value
ComboBox3.List = Array(leavingdate, leavingdate + 1, leavingdate + 2)
End Sub



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
permanent conversion of 1904 date format to 1900 date format Jos Excel Worksheet Functions 4 November 26th 15 02:48 PM
Format Date ComboBox Blobbies Excel Discussion (Misc queries) 4 January 10th 08 08:40 AM
Combobox/Rowsource - loses date/time format systemx[_14_] Excel Programming 2 July 31st 06 10:24 AM
ComboBox Date Format Problem CiaraG[_5_] Excel Programming 2 February 15th 06 02:17 PM
Userform: Combobox, dates, match required- can't get date format to work KR Excel Programming 2 November 10th 04 05:18 PM


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