+ Reply to Thread
Results 1 to 4 of 4

Userform placing date in spreadsheet as MM/DD/YYYY

  1. #1
    Registered User
    Join Date
    08-20-2012
    Location
    Glasgow
    MS-Off Ver
    Excel 2007
    Posts
    77

    Userform placing date in spreadsheet as MM/DD/YYYY

    Hi,

    I have a spreadsheet which is set up for the UK date format, 'DD/MM/YYYY'. I have created a UserFrom to enter dates into the spreadsheet, however, when I enter the dates in the Userform they appear in the spreadsheet in a 'MM/DD/YYYY'. How can I change my UserForm code so that it places dates in my spreadsheet in the format of 'DD/MM/YYY' ?

    For example, I enter '08/01/1987' in my userform, which is intended to be the 8th January 1987, but in my spreadsheet it is displayed as '01/08/1987', as in the 1st of August 1987.

    The date boxes in my UserForm are 'TextBox4', 'TextBox12' and 'TextBox13'

    Below is the code for my UserForm, everything else works perfectly:


    Please Login or Register  to view this content.

  2. #2
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Userform placing date in spreadsheet as MM/DD/YYYY

    Try using
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-20-2012
    Location
    Glasgow
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: Userform placing date in spreadsheet as MM/DD/YYYY

    Thanks for that, it worked.

    I have another UserForm in the same Workbook. This allows users to edit and view the data enterered in the spreadsheet.

    However, it displays the dates in the wrong format similar to the way the Add Record UserForm did before.

    Below is the code, could you suggest a similar fix? It would be greatly appreciated.




    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-20-2012
    Location
    Glasgow
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: Userform placing date in spreadsheet as MM/DD/YYYY

    Found a resolution to this, thanks.

    http://www.excelforum.com/excel-prog...html?p=2909635

    Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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