+ Reply to Thread
Results 1 to 5 of 5

Not recognising dates

  1. #1
    Forum Contributor
    Join Date
    03-25-2011
    Location
    London, England
    MS-Off Ver
    office 2021
    Posts
    317

    Not recognising dates

    Hi Guys
    The date was not suitable so am reconstructing it. However when it is OK only some of the dates become dates. The remainder require me to place the cursor to the right of the date –then move to the date in the Fx position my cursor to the left and hit Enter. This move whatever it is does not show up in VBA.

    Thanks in Advance
    Mark
    Attached Files Attached Files
    Last edited by markDuffy; 02-21-2014 at 11:17 AM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Not recognising dates

    Try this...

    Please Login or Register  to view this content.

    It replaces all the / with a space. The dates are then a recognized date format.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor
    Join Date
    03-25-2011
    Location
    London, England
    MS-Off Ver
    office 2021
    Posts
    317

    Re: Not recognising dates

    Hi AlphaFrog
    Did you test this and did it work for you. If so I am unlucky as I tried it no luck no Luck. In my original file i also had some Jul and Jun dates which converted themselves to dates perfectly.
    Please Login or Register  to view this content.
    Mark
    The ' to mark as commented out is not very clear - Basically the first two lines.
    Last edited by markDuffy; 02-21-2014 at 12:17 PM. Reason: Improve

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Not recognising dates

    I tested it on your example file. It did mess up the serial-dates that were already converted, but it converted the text-dates.

    The code below will convert just the text-dates and not affect any previously converted serial-dates.

    Please Login or Register  to view this content.

    I didn't see any Jun or Jul dates in the example file.

  5. #5
    Forum Contributor
    Join Date
    03-25-2011
    Location
    London, England
    MS-Off Ver
    office 2021
    Posts
    317

    Re: Not recognising dates

    Hi AlphaFrog.

    My sincerest apologies. I think i messed up the original file with the forum copy works great. One more piece of the VBA jigsaw learnt. Thanks
    Mark

+ 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. Macro not recognising changes
    By grey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-22-2012, 05:20 AM
  2. Drop down not recognising
    By stevesunfold in forum Excel General
    Replies: 2
    Last Post: 11-24-2008, 04:09 PM
  3. Recognising dates for formula output
    By BravoBravo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2008, 01:21 AM
  4. Recognising the first non-zero value over 13 columns
    By Tricia in forum Excel General
    Replies: 2
    Last Post: 07-10-2008, 01:33 AM
  5. Macro for Recognising Difference in Dates
    By stevencarroll19 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-23-2006, 12:26 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