+ Reply to Thread
Results 1 to 13 of 13

Dateformat in combobox

  1. #1
    Registered User
    Join Date
    11-16-2016
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    35

    Dateformat in combobox

    Hello,

    I have a column with date and time that I fill to a combobox. Why does the date does not shown as in the column? See Picture

    Please help!

    Cheers RaffeDateComboBox.jpg

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Dateformat in combobox

    Any chance you could upload a sample workbook?

    Click on GO ADVANCED, scroll down and click Manage Attachments.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    11-16-2016
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    35

    Re: Dateformat in combobox

    Here it comes. Raffe
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Dateformat in combobox

    Try to change cells format to "yyyy.mm.dd hh:mm:ss", because current format is "yyyy.mm.dd hh:mm:ss.0"

  5. #5
    Registered User
    Join Date
    11-16-2016
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    35

    Re: Dateformat in combobox

    Thanks for the replay kasan, I tried, the same result.

    I would like to have the format becuase I would like to show ms in my graph.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Dateformat in combobox

    Try this.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    11-16-2016
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    35

    Re: Dateformat in combobox

    Thanks Norie! It works in my example, but how do I change if my row is on another sheet?

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Dateformat in combobox

    You would need to include the sheet reference, for example.
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    11-16-2016
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    35

    Re: Dateformat in combobox

    Thanks Norie! A lst question, if I would like to have a decimal (,) instead of dot (.) what do I change?

  10. #10
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Dateformat in combobox

    Try changing the . in the formatting string in the TEXT function to ,.
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    11-16-2016
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    35

    Re: Dateformat in combobox

    I tried that but it did not work. The combobox did not fill at all.

  12. #12
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Dateformat in combobox

    Aye, that's what happened with me too but I thought it might have been a regional thing and it would have worked for you .

    Anyway, give this a try.
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    11-16-2016
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    35

    Re: Dateformat in combobox

    Thanks again!

+ 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. Dateformat in a combobox
    By Raffe in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-17-2016, 09:35 AM
  2. Numberformat macro partially works, color changes, dateformat not
    By gertassen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-28-2015, 11:10 AM
  3. listbox changes dateformat
    By stewart1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-02-2015, 11:47 AM
  4. VBA DateFormat
    By jagadeesh.rt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-29-2014, 02:48 AM
  5. Stop Excel from converting numbers to Dateformat
    By ChrisNor in forum Excel General
    Replies: 13
    Last Post: 11-12-2011, 04:16 AM
  6. Problem with dateformat when copied from userform
    By age in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-30-2007, 02:02 PM
  7. [SOLVED] Dateformat
    By Kjeldc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-13-2005, 05:06 PM

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