ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   vba to delete rows (https://www.excelbanter.com/excel-worksheet-functions/255849-vba-delete-rows.html)

ericahughes

vba to delete rows
 
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!

Ashish Mathur[_2_]

vba to delete rows
 
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

"ericahughes" wrote in message
...
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!




All times are GMT +1. The time now is 08:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com