Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Date values in a dropdown box

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    24
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I've created a dropdown box (using the control toolbar), and linked the data to a range of dates. When I scroll through the values in the box they look correct, but when I select a date and move on to another cell the date shows up as 37283 (or similar). Where do I set the format for the value in the box?

    Thanks,
    Will

  2. #2
    MrExcel MVP lenze's Avatar
    Join Date
    Feb 2002
    Location
    Helena, MT
    Posts
    13,690
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Try this code for the combo box

    Private Sub ComboBox1_Change()
    ComboBox1.Value = Format(ComboBox1.Value, "m/d/yy")
    End Sub

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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