Delete if find a data format

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi ,

I wish to write a macro that can find in column "O", a date in this format
(5/07/2007), if found then highlight the row in red color, else will have to
delete the entire row. However, i just cannot make the macro run? How can
write in such as way that the marco looks from Row 1 to end of last used rows
and try to search for the date format, and to delete that row ? i have tried
selection.Entirerow.Delete or entirerow.delete...but still it does not work.
 
The first rule when deleting rows in a list is to delete from the bottom up.

Mike F
 
Thanks, mike. after this time, i know how to. just need to include something
like this and it works for me...Range.Delete Shift:=xlUp

thanks once again. It helps to relief myself from alot of frustration.
 

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