• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 189
  • Last Modified:

deleted non blank rows

I want to find all the non blank rows on the current sheet starting at row 5 and delete them.

0
vmccune
Asked:
vmccune
  • 2
1 Solution
 
strickddCommented:
Start here: http://excel.tips.net/T002386_Conditionally_Deleting_Rows.html

Simply modify the delete condition.
0
 
Rob HensonFinance AnalystCommented:
If you are deleting non-blank rows, why not delete all?

The blank rows that are deleted as well will be replaced with new blank rows.

Thanks
Rob H
0
 
vmccuneAuthor Commented:
If I delete all, will that also delete a command button on the sheet?  How do I felete all?
0
 
Rob HensonFinance AnalystCommented:
If the command button is anchored above row 5 then it would stay.

How are you determining your last used row?

Assuming you can pull the row value from this as a variable, lets call it n; you could then just select rows 6 to n and use EntireRows.Delete

Alternatively, create a blank template including buttons that you can copy and paste over the relevant area. Then you could clear the whole sheet.

Thanks
Rob H
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now