+ Reply to Thread
Results 1 to 3 of 3

Date handling from Userform to Excelsheet

  1. #1
    Registered User
    Join Date
    10-11-2016
    Location
    Aberdeen, Scotland
    MS-Off Ver
    2010
    Posts
    49

    Question Date handling from Userform to Excelsheet

    All,

    Had a look around the forum and I can't quite find the answer I am after (or that will actually take).

    So my users put a date in UK format (dd/mm/yy) into a user form. This is then put into US format when it arrives in the Excel Sheet.

    The element of interest throughout is DOI

    Here is the Sub for the button press

    Please Login or Register  to view this content.
    The call is made to a module which has the following sub:
    Please Login or Register  to view this content.
    I have tried different forms of this: Cells(NextRow, NextColumn) = Format(DOI, "dd/mm/yy"), Cells(NextRow, NextColumn) = Format(cdate(DOI), "dd/mm/yy") and nothing is sticking.

    I am looking at changing the input box to a date picker box but this is bugging me and I would like to fix it.

    Thanks in advance

    R

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Date handling from Userform to Excelsheet

    Hi rpjwhite,

    Switching between US and European date formats can drive you crazy. When confronted with this problem I try to use a format that is common to both areas. If you format the spreadsheet to the month, day, and year format of your choosing, you will probably have success with the following:

    Please Login or Register  to view this content.
    Lewis

  3. #3
    Registered User
    Join Date
    10-11-2016
    Location
    Aberdeen, Scotland
    MS-Off Ver
    2010
    Posts
    49

    Re: Date handling from Userform to Excelsheet

    thread solved here:
    http://www.excelforum.com/showthread.php?t=1173220

+ 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. UserForm and Call a Excelsheet in Frame
    By Jsmoka in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-19-2015, 04:22 AM
  2. image on excelsheet--> userform
    By lara92 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-31-2012, 03:42 AM
  3. Excel 2007 : Filtering Data from excelsheet on the Userform
    By qiqinuinaifen128 in forum Excel General
    Replies: 1
    Last Post: 01-11-2012, 09:17 AM
  4. Copy data from Userform back to excelsheet
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-12-2011, 02:21 PM
  5. Store the data from userform to excelsheet in all chart formats
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-12-2011, 03:06 AM
  6. [SOLVED] how to use an excelsheet that is already in my userform
    By Jean-Pierre D via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-19-2005, 04:05 AM
  7. Userform handling
    By rodrigo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-02-2005, 10:06 AM

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