+ Reply to Thread
Results 1 to 4 of 4

Macro to delete any rows in column ‘A’ which do not have a date in them

  1. #1
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Thumbs up Macro to delete any rows in column ‘A’ which do not have a date in them

    Hi.

    Can any please advise me of the macro code I need to check all cells in column ‘A’ for any cells that do not contain a date and then delete them N.B. the dates (to keep) will be in the format dd/mm/yy

    Any help would be greatly appreciated

    Many thanks in advance


    Rob

    N.B Excel version 2003
    Last edited by robertguy; 09-15-2011 at 07:27 AM. Reason: to mark as solved
    Rob

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Macro to delete any rows in column ‘A’ which do not have a date in them

    Why a macro?
    Can't you just filter out all dates in Column A, select all the rows in the result, delete them, then remove the filter?
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Question Re: Macro to delete any rows in column ‘A’ which do not have a date in them

    Marcol,

    what I'm trying to do is to fully automate the process as the list I recieve can be many thousands of row and this macro will be added to another macro which formats other coulmns/data etc

    Rob.
    Last edited by robertguy; 09-14-2011 at 07:59 AM. Reason: amend spelling

  4. #4
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Re: Macro to delete any rows in column ‘A’ which do not have a date in them

    Question was and answered and resolved via another Forum i.e.

    http://www.mrexcel.com/forum/showthr...=1#post2864471

+ 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