+ Reply to Thread
Results 1 to 4 of 4

userform textbox date save problem

  1. #1
    Registered User
    Join Date
    05-08-2016
    Location
    belgium
    MS-Off Ver
    2013
    Posts
    15

    userform textbox date save problem

    i have the problem in my user form my textbox100 when i put any date like example 08/05/2016 (dd mm yyyy)
    is see is also in the cell the same 08/05/2016 thats ok
    but if i save or close the userform then it changes in the cell to 05/08/2016 ????

    how to get it right so the cell stays on dd/mm/yyyy
    my region settings are good in the worksheet it is set as (dd/mm/yyyy) an set right county i live in belgium so it set to dutch standard
    is it the userform that has to change?

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: userform textbox date save problem

    I tend to use something like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    But for a more specific answer we'd need to see the workbook and UserForm.

    BSB

  3. #3
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: userform textbox date save problem

    FYI, you shouldn't use Format, just CDate. Format will return a string which is what causes the original problem. Formatting should be done through the cell's NumberFormat property.

  4. #4
    Registered User
    Join Date
    05-08-2016
    Location
    belgium
    MS-Off Ver
    2013
    Posts
    15

    Re: userform textbox date save problem

    thanks for the tips

    with numberformat did the date good 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. Replies: 0
    Last Post: 08-18-2015, 04:13 PM
  2. [SOLVED] Excel 2010 - Userform - display date from textbox in a label or textbox in 'ddd' format
    By theshybutterfly in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-29-2015, 10:54 PM
  3. [SOLVED] Userform textbox date sorting problem in main sheet
    By amoxia in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-14-2014, 09:28 PM
  4. [SOLVED] Excel 2007, Userform Textbox Date Format and Calendar Control Userform
    By riffology in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2014, 06:18 PM
  5. [SOLVED] Userform called from another userform textbox - unload problem
    By barryleajo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-27-2013, 01:09 PM
  6. save file as name and date from an TextBox USERFORM
    By tullemann in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-17-2011, 11:55 AM
  7. Save Userform Textbox Value to Another Workbook
    By Mooseman60 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-01-2010, 05:35 AM

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