+ Reply to Thread
Results 1 to 5 of 5

Combo Box & Date - Please Help

  1. #1
    Registered User
    Join Date
    09-04-2011
    Location
    Oxford
    MS-Off Ver
    Excel 2003
    Posts
    3

    Combo Box & Date - Please Help

    Hi

    I am trying to populate a combo box from cells in a sheet which contain dates - Not a problem - Using the rowsource property on the combo box.

    However when I click on a date from the combo box it returns the value as a string.

    I have searched the net and found various code snipits but none seem to work - Some return the date to a random date in 2007 and others minus 1 from the actual date.

    The date format has to be DD-MM-YY.

    Ideally i would like it displayed as 01-sep-11 but i can settle for 01/09/11 at this point

    Thanks

    Tracey

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Combo Box & Date - Please Help

    What are you doing with the dates?

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    09-04-2011
    Location
    Oxford
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Combo Box & Date - Please Help

    The user will select a date and a sheet is copied and renamed as the date which the user selected.

    However the main problem is when the user selects the date, the combo box then displays it as a string and looks unprofessional

    Sorry but I don't understand that code which you wrote as wont that display a message box?

  4. #4
    Registered User
    Join Date
    09-04-2011
    Location
    Oxford
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Combo Box & Date - Please Help

    Anybody else know how to help

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Combo Box & Date - Please Help

    The messagebox was to demonstrate the results, the actual code needs implementing into your existing code. I can't do that because I haven't any idea what you are doing!

    I wouldn't work with individual sheets per date, it's just not an efficient way to deal with data

+ 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