+ Reply to Thread
Results 1 to 4 of 4

VBA for deleting entire rows

  1. #1
    Registered User
    Join Date
    07-21-2010
    Location
    Bay Area, Ca
    MS-Off Ver
    Excel 2007
    Posts
    7

    VBA for deleting entire rows

    I have have a worksheet where one column is red (fill color).

    I cannot figure out a macro to delete entire rows in the sheet if the fill color in column C is red?

    Any Suggestions?
    Last edited by TheTalentedMrRipley; 11-04-2010 at 07:34 PM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: VBA for delting entire rows

    Please Login or Register  to view this content.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: VBA for delting entire rows

    What makes the cell turn red? Are you using Conditional Formatting based on a cell value?
    If so, code for automating a filter and deleting visible rows could be written. It is much faster than looping.

    Example:

    Please Login or Register  to view this content.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  4. #4
    Registered User
    Join Date
    07-21-2010
    Location
    Bay Area, Ca
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: VBA for delting entire rows

    This works in a pretty fabulous way. I appreciate the help.

+ 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