+ Reply to Thread
Results 1 to 5 of 5

Macro code to delete entire row if the cell in column C = 0

  1. #1
    Registered User
    Join Date
    02-02-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    16

    Macro code to delete entire row if the cell in column C = 0

    I need a simple line of code to delete the entire row if any cell in the range C1:C1000 has a value of 0.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Macro code to delete entire row if the cell in column C = 0

    Try:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-02-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Macro code to delete entire row if the cell in column C = 0

    that seems to be working but it continually loops until I manually end the macro..

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

    Re: Macro code to delete entire row if the cell in column C = 0

    Another approach:

    Please Login or Register  to view this content.

  5. #5
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Macro code to delete entire row if the cell in column C = 0

    My apologies. Please try this code:
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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