Results 1 to 3 of 3

Macro incorrectly formatting dates from .csv file

Threaded View

  1. #1
    Registered User
    Join Date
    04-05-2016
    Location
    Swindon, England
    MS-Off Ver
    Office 2016
    Posts
    2

    Macro incorrectly formatting dates from .csv file

    Hi everyone,

    I am processing .csv files using Excel macros. I have a date column with dates in dd/mm/yyyy format. Something odd is happening to the dates when the macro opens the .csv file:

    1. When I manually open the .csv files in Excel the dates are formatted correctly, in dd/mm/yyyy format (ManualExcelOpen_Correct.jpg)
    2. When the macro opens the .csv file any dates where the dd part is <=12 the date is changed to mm/dd/yyyy (MacroExcelOpen_Incorrect.jpg).

    I am using Excel 2016 on a Windows 10 machine.

    Any help on this would be much appreciated.

    Thank you in advance.

    Mike L.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Dates incorrectly aligned left
    By moomphas in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-24-2015, 10:13 AM
  2. [SOLVED] Dates were written incorrectly
    By wedzmer in forum Excel General
    Replies: 3
    Last Post: 07-07-2014, 02:10 PM
  3. PivotChart Incorrectly Plotting Dates as Categories
    By tinman484 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-04-2013, 11:57 AM
  4. dates imported incorrectly
    By hclark in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-21-2012, 11:59 AM
  5. Replies: 8
    Last Post: 04-25-2011, 09:37 AM
  6. Dates link incorrectly
    By inoexcel in forum Excel General
    Replies: 0
    Last Post: 02-28-2008, 09:54 PM
  7. Replies: 1
    Last Post: 06-05-2007, 01:37 PM

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