+ Reply to Thread
Results 1 to 8 of 8

My contiued woes with Textbox date formats

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

    My contiued woes with Textbox date formats

    I have a column of dates in a wks formatted as dd/mm/yy.

    When i use my form to populate another speadsheet with data from the sheet containing the dates, the textbox that is poulated with the date, formats the date to mm/dd/yy instead.

    If i ignore the date format, and proceed with the code to place / select data from the form to the speardsheet, the cell that contains the texbox date, is then the correct format of dd/mm/yy.

    So if the user does not take any notice of the incorrect date format on the form all is good, however if the date is important when selecting the required data, then the date can be off putting, as the month and day are switched the US instead of AU format.

    So eg. 4 Feb 2013(4/2/13) can look like 2 Apr 13(2/4/13) instead.

    I have tried to use:
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    But none seem to fix the TextBox date format on the form.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: My contiued woes with Textbox date formats

    Do you have VBA code for any of this????
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

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

    Re: My contiued woes with Textbox date formats

    Quote Originally Posted by xladept View Post
    Do you have VBA code for any of this????
    The below is what calls for the populating of the textboxes.
    Please Login or Register  to view this content.

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

    Re: My contiued woes with Textbox date formats

    Try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

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

    Re: My contiued woes with Textbox date formats

    Quote Originally Posted by Norie View Post
    Try this.
    Please Login or Register  to view this content.
    That is what i aready have, which displays as mm/dd/yy.

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

    Re: My contiued woes with Textbox date formats

    Fixed it(for now i hope) and I hope it keep consistant for me.
    Please Login or Register  to view this content.
    seems to be working.

  7. #7
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: My contiued woes with Textbox date formats

    something like
    Please Login or Register  to view this content.

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Oops, I meant to replace Value with Text.:o

    Using Text will return the cell value as it's formatted on the worksheet.

+ 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