Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete Entire Row

Status
Not open for further replies.

komark

Technical User
Sep 12, 2005
134
US
I need a macro in Excel that would check the value for a certain cell. If the value is zero then delete that entire row.
Can anyone help me please?
 
Have a look at the EntireRow property of the Range object:
If CertainCell.Value = 0 Then CertainCell.EntireRow.Delete

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top