+ Reply to Thread
Results 1 to 3 of 3

Date format on UserForm changes on Spreadsheet

  1. #1
    Registered User
    Join Date
    06-12-2013
    Location
    Manchester, England
    MS-Off Ver
    Excel 2003
    Posts
    1

    Date format on UserForm changes on Spreadsheet

    Hello

    Users need to be able to enter a date into a TextBox on a UserForm in the Format DD-MM-YYYY.

    This is then converted once entered into the format YYYY-MM-DD and when the SAVE button is selected, this is written to the spreadsheet.

    The issue I am having is that the value written to the spreadsheet does not return the date in the required format of YYYY-MM-DD.

    My code is below:

    Code to check if DOB completed:
    Please Login or Register  to view this content.
    Code to convert entered date to YYYY-MM-DD format
    Please Login or Register  to view this content.
    Code to write DOB textbox to spreadsheet
    Please Login or Register  to view this content.
    thanks for any help.

  2. #2
    Forum Contributor
    Join Date
    01-02-2007
    Location
    Australia NSW
    MS-Off Ver
    2013
    Posts
    494

    Re: Date format on UserForm changes on Spreadsheet

    Try:
    Please Login or Register  to view this content.
    Also check the cell format so it reflects "yyyy-mm-dd".

  3. #3
    Forum Contributor
    Join Date
    01-02-2007
    Location
    Australia NSW
    MS-Off Ver
    2013
    Posts
    494

    Re: Date format on UserForm changes on Spreadsheet

    Sorry, double posted for some reason.

    Admin - please delete this 2nd post.

+ 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