+ Reply to Thread
Results 1 to 5 of 5

Remove entire rows if value exists in Column G

  1. #1
    Forum Contributor
    Join Date
    04-21-2009
    Location
    USA
    MS-Off Ver
    2007
    Posts
    101

    Remove entire rows if value exists in Column G

    I need a macro to remove each row in my spreadsheet if Column G contains a value. However, I need it to begin at G6 as G1-5 contains header details that I don't want removed. I have tried using the following macro, but haven't had much luck:

    Please Login or Register  to view this content.
    So to re-iterate, if Column G6:G contains a value, then I would like the entire row with the value removed.

  2. #2
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: Remove entire rows if value exists in Column G

    Please Login or Register  to view this content.
    Does this help?

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Remove entire rows if value exists in Column G

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Remove entire rows if value exists in Column G

    Hi, aharvestofhealth,

    why not use the Autofilter for that? If the values are really values (not formulas) you could use SpecialCells(xlCellTypeConstants, 23) for getting the range to delete.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  5. #5
    Forum Contributor
    Join Date
    04-21-2009
    Location
    USA
    MS-Off Ver
    2007
    Posts
    101

    Re: Remove entire rows if value exists in Column G

    Much appreciated guys!

+ 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