vba to delete rows

  • Thread starter Thread starter ericahughes
  • Start date Start date
E

ericahughes

Can anyone help me to write a vba to delete rows that have the word lab in
Column G? I would like to include nonptlab or labuseonly as well. Basically
anything that has the word lab in it. Thanks in advance!
 
Hi,

You may try this non VBA approach

1. Select the data in column G;
2. Press Ctr+F and type lab
3. Press Find all and then press Ctrl+A
4. This will select all the cells with lab in column G
5. Now Edit > Delete > Row

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com
 

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