+ Reply to Thread
Results 1 to 2 of 2

VBA date USA style not UK style

  1. #1
    Forum Contributor
    Join Date
    11-14-2004
    Location
    Watford, England
    MS-Off Ver
    Microsoft Office 365
    Posts
    131

    VBA date USA style not UK style

    Hi All,

    I am using the following code to *** 15 lines with date, start and end time to an excel sheet.

    The issue I have is that if I enter a date of 10/02/2023 un the box it will change it to 02/10/2023 on the worksheet.

    I require the date to be as entered, in the UK format of dd/mm/yyyy

    Please Login or Register  to view this content.
    Thanks

  2. #2
    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: VBA date USA style not UK style

    Use CDate:

    Please Login or Register  to view this content.
    Rory

+ 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. Lock Style Changes, but still use style
    By OpOrange in forum Word Formatting & General
    Replies: 0
    Last Post: 11-12-2021, 10:48 AM
  2. Copy to & apply style from another document - not all properties depend on style
    By kofeincek in forum Word Programming / VBA / Macros
    Replies: 1
    Last Post: 10-15-2020, 09:35 PM
  3. Convert R1C1 Style to A1 style
    By m1ngle in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-17-2016, 08:38 PM
  4. [SOLVED] Transform Data From Pivot Style to a Table Style
    By The_Snook in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-18-2016, 04:13 AM
  5. Normal Style to No Spacing Style by default.
    By dogberry in forum Word Formatting & General
    Replies: 1
    Last Post: 12-23-2012, 11:48 PM
  6. converting the date style
    By s_ali_hassan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-08-2006, 11:35 AM
  7. From Dollar ($) sign style to Dirhams (Dhs.) sign style
    By Bohemianzzrek in forum Excel General
    Replies: 2
    Last Post: 04-03-2006, 07:30 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