Do......Loop

  • Thread starter Thread starter Benoit
  • Start date Start date
B

Benoit

Hello,

I'm using the following macro:

Do
Cells.Find(What:="testbed", After:=ActiveCell,
LookIn:=xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows,
SearchDirection:=xlNext, MatchCase:=False).Activate
Selection.ClearContents
Cells.FindNext(After:=ActiveCell).Activate
Loop

What can I add to this macro to tell it that when it finds
an empty cell, to stop the macro...

Thanks!!!
 
Wouldn't it be faster to just use autofilter and delete all at once. Record
and alter to suit.
OR
use FINDNEXT to be faster.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top