+ Reply to Thread
Results 1 to 4 of 4

Date format Entry Wrong Via Userform

  1. #1
    Registered User
    Join Date
    03-23-2015
    Location
    India
    MS-Off Ver
    MS Office 2007
    Posts
    30

    Date format Entry Wrong Via Userform

    Dear Forum members,

    I have a userform containing Textbox which sends date to Excel cell with a submit button. Whenever I write date in the textbox from Date 1 to 12, no matter whaterever month, the entry in the cell from textbox get flipped date to month & month to date. But from date 13th to 31st the entries go correct into the cell.
    I formatted the cell with date format and even custom format (dd-mm-yyy). The problem remains the same, from date 1 to 12, it gets flipped in the cell from userform.

    I have uploaded a sample Excel file with Userform to try.
    Can somebody help me with this.

    Regards,
    Mukhtar
    Attached Files Attached Files

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,165

    Re: Date format Entry Wrong Via Userform

    Try like:

    Please Login or Register  to view this content.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Expert
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    2,734

    Re: Date format Entry Wrong Via Userform

    try this code

    Please Login or Register  to view this content.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 365
    Posts
    20,264

    Re: Date format Entry Wrong Via Userform

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)

+ 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. [SOLVED] USERFORM Returning Wrong Date format when seaching table record
    By Chrisb812 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-28-2020, 02:03 PM
  2. [SOLVED] date format wrong entry.
    By GOrtega in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-04-2020, 12:05 AM
  3. Errortrap wrong date entry
    By kemarsden in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2020, 11:43 PM
  4. [SOLVED] Data Validation. Date Format in UserForm Data Entry
    By kmlloyd in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-09-2015, 11:12 PM
  5. Vba help needed to check date and time entry and correct if wrong
    By markharris2004 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-13-2014, 05:06 PM
  6. Wrong Date Format in output userform
    By ABBOV in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-28-2010, 06:58 AM
  7. Excel 2007 : Date entry is wrong
    By Attila in forum Excel General
    Replies: 4
    Last Post: 01-02-2010, 09:47 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