Computer Learning Zone CLZ Access Excel Word Windows

Once upon a time, people identified the god Neptune as the source of storms at sea. Today we call these storms hurricanes. The only people who still call hurricanes acts of god are the people who write insurance forms.

-Neil deGrasse Tyson
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Excel Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Delete Specific Rows
Michelle C 
    
13 years ago
Hi, Richard.  I think I've got a good one for you and hope that you'll be able to answer it in the forum.

I've got an Excel 2010 spreadsheet that has 13 columns.  I want to delete those rows and only those rows where the cell in either Col A or Col M are blank using  VBA.  I've tried recording a macro, but the macro specifies a row number to begin the delete after I've filtered to show only the rows with blanks.

I think an IF statement or a WHERE clause in an IF statement is the solution to my problem, but I'm only familiar enough with VBA to really mess things up royally.

Please help.  Thanks.

Michelle.


Reply from Richard Rost:

Yes, you'll need a VBA macro with a loop to handle this. I'm sure I could figure it out, but to be honest my Excel VBA is a bit rusty, so I can't just spout it off the top of my head (like I can with Access VBA). I don't program in Excel that much because (in my opinion) if something like this needs to be programmed, I'd do it in Access. I'm sure you could find the code to loop through rows with a Google search. If you can't and you really need a solution, submit it via my TechHelp page, and I'll have one of my guys write something up for you.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Excel Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/16/2026 1:56:09 PM. PLT: 0s