+ Reply to Thread
Results 1 to 4 of 4

Macro to Delete Blank Rows in Col A

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,725

    Macro to Delete Blank Rows in Col A

    I have a macro to delete all blanks rows in Col A up to the row before the first value


    The Macro does not delete any of the blank rows before the first value


    Kindly test my macro and amend


    Please Login or Register  to view this content.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Macro to Delete Blank Rows in Col A

    This fixes your code, but it's not the best way:

    Please Login or Register  to view this content.
    You would be better switching on AutoFilter, filtering on blanks in column A, then deleting the visible rows. Only important if there's lots of data. You should be able to Google a solution using AutoFilter if you need it.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,725

    Re: Macro to Delete Blank Rows in Col A

    Many thanks Trevor

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Macro to Delete Blank Rows in Col A

    You're welcome. Thanks for the rep.

+ 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. [SOLVED] Cant delete blank rows with macro
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 09-25-2014, 08:16 AM
  2. Macro to delete blank rows if column I is blank for the row
    By tiger10012 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-10-2013, 03:01 PM
  3. Macro to delete blank rows
    By ewong in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-12-2012, 02:38 PM
  4. Macro to delete blank rows
    By booo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2011, 08:05 PM
  5. Macro to Delete Blank Rows
    By smlaff01 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2007, 02:37 PM
  6. [SOLVED] Delete blank rows Macro
    By Richard in forum Excel General
    Replies: 3
    Last Post: 11-04-2005, 04:10 AM
  7. Macro to delete blank rows
    By Barb Reinhardt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-15-2005, 06:05 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