Computing.Net > Forums > Office Software > Macro- Delete rows

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Macro- Delete rows

Reply to Message Icon

Name: KimCo
Date: March 10, 2009 at 11:13:35 Pacific
OS: Windows Vista
Subcategory: Microsoft Office
Comment:

I want to keep the following rows there if anything below is in one the the columns listed:

A,B,C,D, E, H & I: any #'s between 1-300
F: any "C's" or "I's"

If it has a zero or blank in all columns A-I it can be deleted.

Hope that makes more sense.



Sponsored Link
Ads by Google

Response Number 1
Name: DerbyDad03
Date: March 11, 2009 at 10:59:57 Pacific
Reply:

re: If it has a zero or blank in all columns A-I it can be deleted

Does the code have to check for numbers like 500 in the specified columns or other letters in F?

If the values will only be 0 to 300 or C or I then all we are really checking for is blanks or zeros.

However, if a cell might contain 536 or Q, then we have to be very specific about what we search for before deleting a row.

Let us know.


0

Response Number 2
Name: KimCo
Date: March 11, 2009 at 15:23:46 Pacific
Reply:

I was able to figure out the code I needed for this, however I'm trying now to find out the following:

I've creating a drop down that has different words, once I select from the drop down my cell is white (before selecting I've saved it as red).

Any way to make drop downs a colour?


0

Response Number 3
Name: DerbyDad03
Date: March 11, 2009 at 20:02:58 Pacific
Reply:

You should probably post that question in a new thread under an appropriate subject line.

P.S. When you do, please include more detail because I wasn't able recreate the problem with a simple Data Validation Dropdown list.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Macro- Delete rows

macro to delete rows www.computing.net/answers/office/macro-to-delete-rows/8198.html

Macro to check columns and delete rows www.computing.net/answers/office/macro-to-check-columns-and-delete-rows/8753.html

Delete rows in Excel www.computing.net/answers/office/delete-rows-in-excel/2171.html