+ Reply to Thread
Results 1 to 8 of 8

Dates as Numbers in Combo Box

  1. #1
    Forum Contributor
    Join Date
    06-06-2008
    Location
    Manchester
    MS-Off Ver
    MS Office 2003
    Posts
    161

    Dates as Numbers in Combo Box



    I have the same problem as thread,

    http://www.excelforum.com/excel-prog...ml#post1969271

    When I fill the Combo Box it shows as a date in the list for selecting in the Combo Box. Once I select the Date I want it then changes back t its number format. I have tried using the code below and still no joy, where am I going wrong?

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    re: Dates as Numbers in Combo Box

    Maybe there is a better way but this works:
    Please Login or Register  to view this content.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  3. #3
    Forum Contributor
    Join Date
    06-06-2008
    Location
    Manchester
    MS-Off Ver
    MS Office 2003
    Posts
    161
    I have tried this and keep getting a Type Mismatch error on the section

    Please Login or Register  to view this content.
    When I hover over it on the Debug it shows me the date as a number still


    Please Login or Register  to view this content.
    Where am I going wrong?

  4. #4
    Forum Contributor
    Join Date
    06-06-2008
    Location
    Manchester
    MS-Off Ver
    MS Office 2003
    Posts
    161
    I have tried this code and still when selecting the dates in the Combo Box they appear as a number format

    Please Login or Register  to view this content.
    I cant see where am going wrong?

  5. #5
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671
    Have you tried the hashes #?

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Have you tried DateSerial?
    Can you attach the workbook?
    Hope that helps.

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

    Free DataBaseForm example

  7. #7
    Forum Contributor
    Join Date
    06-06-2008
    Location
    Manchester
    MS-Off Ver
    MS Office 2003
    Posts
    161
    I've tried the Hash's

    Attached is the file I'm using to test things out...

    Its also the same file that the other thread I have open is (Running Stored Procedures from Excel)

    Thanks
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    06-06-2008
    Location
    Manchester
    MS-Off Ver
    MS Office 2003
    Posts
    161
    I have tried this code below and it seems to work like it should...

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel keeps converting numbers to dates on copy/paste
    By zazu88hike in forum Excel General
    Replies: 3
    Last Post: 01-27-2009, 02:36 PM
  2. dates converting to serial numbers
    By henro8 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2008, 03:38 PM
  3. I need to format various strings (numbers, dates) precisely
    By durandal05 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-10-2008, 08:55 PM
  4. Adding numbers to output dates
    By MasterMonk in forum Excel General
    Replies: 2
    Last Post: 05-03-2007, 04:59 PM
  5. Ordinal Numbers in Dates
    By OfficeBitty in forum Excel General
    Replies: 13
    Last Post: 11-21-2006, 05:34 AM

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