A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

vba to delete rows



 
 
Thread Tools Display Modes
  #1  
Old February 9th, 2010, 11:10 PM posted to microsoft.public.excel.worksheet.functions
ericahughes
external usenet poster
 
Posts: 4
Default 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!
  #2  
Old February 9th, 2010, 11:27 PM posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_]
external usenet poster
 
Posts: 1,764
Default 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!


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:39 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.