Have you encountered such problem from Excel 97 to

  • 15 years ago
    Hi everyone,

    I have some VBA in Excel 97 and now upgraded to 2003.
    I have encountered problem in the date format when open file using

    "Workbooks.Open Filename:="D:\VRRate.csv"

    The csv file is having columns of data, one of them is date e.g. 09/05/05 (actual date is 09 May 2005), same as the PC setting in Control Panel.

    When I open file by using normal Excel procedures "File" then "Open" and then select the file, there is no problem the date are still showing 09/05/05, but when the open is opened by using the marco above, the date will show incorrectly as 05/09/05, which is 05 Sept 2005.

    How can I solve this problem? Is there any setting related?  

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Memory is like an orgasm. It's a lot better if you don't have to fake it.” - Seymour Cray