+ Reply to Thread
Results 1 to 4 of 4

Formatting a date in a combo box to M/D/YY

  1. #1
    Registered User
    Join Date
    01-17-2012
    Location
    Pacific Northwest
    MS-Off Ver
    Excel 2019
    Posts
    87

    Question Formatting a date in a combo box to M/D/YY

    My user form is coded to read the most recent date on my worksheet (which is already formatted as M/D/YY) and then load that date and the two dates following it to a combo box. For some reason the formatting for the dates has changed to display YYYY. Is there a way to keep the formatting from changing from what is stored on my worksheet?

    Thanks for your help!
    Last edited by imaquila; 02-27-2012 at 11:37 PM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486

    Re: Formatting a date in a combo box to M/D/YY

    How is your ComboBox populated?

  3. #3
    Registered User
    Join Date
    11-23-2011
    Location
    VietNam
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Formatting a date in a combo box to M/D/YY

    Try
    Please Login or Register  to view this content.
    Post file?

  4. #4
    Registered User
    Join Date
    01-17-2012
    Location
    Pacific Northwest
    MS-Off Ver
    Excel 2019
    Posts
    87

    Re: Formatting a date in a combo box to M/D/YY

    Sorry, I wasn't very clear. It was the display in the combo box was using the "YYYY" format but I applied your suggestion to comboBox.AddItem code and it works great now.

    Thanks so much for your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1