+ Reply to Thread
Results 1 to 4 of 4

VBA Paste Command is reversing SOME dates!?

  1. #1
    Forum Contributor
    Join Date
    08-14-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    257

    VBA Paste Command is reversing SOME dates!?

    I Hope someone can help with this.

    User Copies text from a *.txt file. Presses a button that then pastes to a Sheet. Only problem is its pasting SOME dates in reverse:

    Please Login or Register  to view this content.
    This is a sample of what its pasted in.

    Date
    30/06/2012 - ok
    07/01/2012 - Should be 01/07/2012
    07/02/2012
    07/03/2012
    07/04/2012
    07/05/2012
    07/06/2012
    07/07/2012
    07/08/2012
    07/09/2012
    07/10/2012
    07/11/2012
    07/12/2012
    13/07/2012 - ok
    14/07/2012
    15/07/2012
    16/07/2012
    17/07/2012
    18/07/2012
    19/07/2012
    20/07/2012

    If I Ctrl+V it fine.

    Anyone got any Ideas?
    Last edited by jshaw82; 03-27-2013 at 08:57 AM.

  2. #2
    Forum Contributor
    Join Date
    08-14-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    257

    Re: VBA Paste Command is reversing SOME dates!?

    I've just Tried adding:
    Please Login or Register  to view this content.
    And that still doesn't work!

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: VBA Paste Command is reversing SOME dates!?

    because your values are text and vba defaults to a us locale you have to use
    Please Login or Register  to view this content.
    instead of the paste command
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  4. #4
    Forum Contributor
    Join Date
    08-14-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    257

    Re: VBA Paste Command is reversing SOME dates!?

    Thanks JP!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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