+ Reply to Thread
Results 1 to 3 of 3

VBU macro - English data entry coverts to American format

  1. #1
    Registered User
    Join Date
    03-16-2016
    Location
    London
    MS-Off Ver
    2013
    Posts
    34

    Lightbulb VBU macro - English data entry coverts to American format

    Hello

    I'm wondering if you can aid.

    I have created a macro workbook with a user entry form collecting key information. Of this key information, three fields are dates. These dates are copied into a database for further analysis and Macros. Currently this does not work as I intended as the dates are converting to a US format, e.g 01/06/2016 is converting to 06/01/2016. This does make a huge difference as I have a formulae to report on income deferred to another period and should the end date continue to be in the past, the report would not operate or inform the user of the correct accounting adjustment.

    Currently the entry pastes as follows to my database

    ActiveCell.Offset(0, 1).Select
    ActiveCell.Value = TextBox4.Value
    Selection.NumberFormat = "dd/mm/yyyy"


    Many thanks
    Michael

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: VBU macro - English data entry coverts to American format

    Hello Michael
    Have you tried using Cdate in your code, for example:

    Please Login or Register  to view this content.
    This usually works for me with a UK region pc.

    DBY

  3. #3
    Registered User
    Join Date
    03-16-2016
    Location
    London
    MS-Off Ver
    2013
    Posts
    34

    Re: VBU macro - English data entry coverts to American format

    Many thanks - it works a dream

+ 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] English date format macro
    By EdwardStephenson in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-02-2014, 08:58 AM
  2. Macro saves my CSV file with dates in American format
    By JulietMikeMike in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-09-2013, 10:06 PM
  3. Auto-Populate Data Entry Format Based on Drop Down Selection. Macro?
    By pro10is4life in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-07-2013, 01:16 AM
  4. All dates in American format?
    By Simon Lloyd in forum Suggestions for Improvement
    Replies: 2
    Last Post: 01-03-2013, 08:35 AM
  5. English to English Dictionary in MS Excel format
    By waqaszhr in forum Excel General
    Replies: 0
    Last Post: 12-03-2012, 03:19 PM
  6. Why is the date changing to American Format
    By darbid in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-07-2010, 10:00 AM
  7. Macro Dates - American or English
    By simmo86 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-26-2010, 09:03 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