Advertisement

05.16.2008 at 08:06PM PDT, ID: 23410171
[x]
Attachment Details

Deleting a Row, when Criteria is met

Asked by greg_c in Microsoft Excel Spreadsheet Software

Tags: , ,

Hi

I was wondering if anyone know if it is possible to delete a row using VBA if a certain cell contains a value.  For example if I have the following data:
     A         B        C         D
1   1        XX       2        3
2   3        3         3        3

I would want to delete row 1 as it contains XX.  If so, could someone direct me to the appropriate code.

Greg
Start Free Trial
[+][-]05.16.2008 at 08:25PM PDT, ID: 21587878

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 08:29PM PDT, ID: 21587889

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 09:47PM PDT, ID: 21588026

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Excel Spreadsheet Software
Tags: Microsoft, Excel, 2003
Sign Up Now!
Solution Provided By: dj88
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.16.2008 at 10:41PM PDT, ID: 21588110

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628