+ Reply to Thread
Results 1 to 3 of 3

Macro switches the date format from UK to US

  1. #1
    Registered User
    Join Date
    01-14-2013
    Location
    Derby
    MS-Off Ver
    Excel 2007
    Posts
    22

    Macro switches the date format from UK to US

    Hi,

    I have a macro which works perfectly however it is switching the date in 4 columns of data from UK to US format, ie from 15/03/2014 to 03/15/2014.

    I have attached the spreadsheet with the macro in.

    Please HELP!!! I need a way of fixing this ASAP.

    Thanks,

    Geoff
    Attached Files Attached Files

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

    Re: Macro switches the date format from UK to US

    Geoff

    This line in the code is setting the date format in columns B:BP to US style, mm/dd/yyyy, perhaps that's the problem?
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    01-14-2013
    Location
    Derby
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Macro switches the date format from UK to US

    Oops I forgot to take that out......that shouldn't be in there that bit of script.

+ 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. Excell automatically switches value to date.
    By Ventoux in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-17-2013, 07:27 PM
  2. Using a Macro that switches between workbooks
    By Jorge in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-22-2006, 07:10 AM
  3. Replies: 0
    Last Post: 02-10-2006, 02:23 PM
  4. Cell format switches to TEXT
    By Bob in forum Excel General
    Replies: 1
    Last Post: 03-30-2005, 10:25 PM
  5. [SOLVED] Macro for Filter Switches ... Maybe???
    By Ken in forum Excel General
    Replies: 4
    Last Post: 02-25-2005, 02:06 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