+ Reply to Thread
Results 1 to 2 of 2

Date-Format of Dropdown-Combo is integer

Hybrid View

  1. #1
    goa
    Guest

    Date-Format of Dropdown-Combo is integer

    When I use a Dropdown-Combo listing dates in an Excel-Userform , the
    choosen date is formatted into integer instead of date (38048 instead
    of 02.03.2004), when the dropdown-combo collapses.
    How can I format into date?

  2. #2
    Tom Ogilvy
    Guest

    Re: Date-Format of Dropdown-Combo is integer

    One easy way is to load the combobox with Strings rather than using the
    rowsource properties.

    for each cell in Worksheets("Sheet1").Range("A1:A10")
    userform1.combobox1.AddItem cell.Text
    Next

    You can do this in the Initialize event of the userform.

    --
    Regards,
    Tom Ogilvy

    "goa" <[email protected]> wrote in message
    news:[email protected]...
    > When I use a Dropdown-Combo listing dates in an Excel-Userform , the
    > choosen date is formatted into integer instead of date (38048 instead
    > of 02.03.2004), when the dropdown-combo collapses.
    > How can I format into date?




+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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