PC Review


Reply
Thread Tools Rate Thread

Delete multiple rows

 
 
PJ Usher
Guest
Posts: n/a
 
      20th Sep 2007
Excel 2000

Hi
I would like a macro to

Find a cell with unique criteria
Delete the row with the cell and 3 rows below.

Was able to find the cell
then delete the row with the cell but having difficulty deleting the 3 rows
below.

Currently I have:

Range(ActiveCell, ActiveCell.End(xldown).select
Selection.delete

Tried to code to select additional rows with row+3 in various configuration
but it gave me an errors.
Obviously I do not know enough.
Any help would be appreciated.

Thank you
PJ



 
Reply With Quote
 
 
 
 
Gary Keramidas
Guest
Posts: n/a
 
      20th Sep 2007
you can try this
Range(ActiveCell,activecell.Offset(3)).entirerow.delete

--


Gary


"PJ Usher" <(E-Mail Removed)> wrote in message
news:%23WaQY74%(E-Mail Removed)...
> Excel 2000
>
> Hi
> I would like a macro to
>
> Find a cell with unique criteria
> Delete the row with the cell and 3 rows below.
>
> Was able to find the cell
> then delete the row with the cell but having difficulty deleting the 3 rows
> below.
>
> Currently I have:
>
> Range(ActiveCell, ActiveCell.End(xldown).select
> Selection.delete
>
> Tried to code to select additional rows with row+3 in various configuration
> but it gave me an errors.
> Obviously I do not know enough.
> Any help would be appreciated.
>
> Thank you
> PJ
>
>
>



 
Reply With Quote
 
PJ Usher
Guest
Posts: n/a
 
      20th Sep 2007

Hi Gary
It works just the way I wanted.
You guys are great!!
Thank you very much

PJ


"Gary Keramidas" <GKeramidasATmsn.com> wrote in message
news:eraVs94%(E-Mail Removed)...
> you can try this
> Range(ActiveCell,activecell.Offset(3)).entirerow.delete
>
> --
>
>
> Gary
>
>
> "PJ Usher" <(E-Mail Removed)> wrote in message
> news:%23WaQY74%(E-Mail Removed)...
>> Excel 2000
>>
>> Hi
>> I would like a macro to
>>
>> Find a cell with unique criteria
>> Delete the row with the cell and 3 rows below.
>>
>> Was able to find the cell
>> then delete the row with the cell but having difficulty deleting the 3
>> rows
>> below.
>>
>> Currently I have:
>>
>> Range(ActiveCell, ActiveCell.End(xldown).select
>> Selection.delete
>>
>> Tried to code to select additional rows with row+3 in various
>> configuration
>> but it gave me an errors.
>> Obviously I do not know enough.
>> Any help would be appreciated.
>>
>> Thank you
>> PJ
>>
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hpw do I delete multiple empty rows found between filled rows? Bill Microsoft Excel Worksheet Functions 1 15th Nov 2009 12:52 AM
Delete Blank Rows Code - Multiple Worksheets - Multiple Documents =?Utf-8?B?QmVuUw==?= Microsoft Excel Misc 3 29th Jun 2007 12:20 AM
delete multiple rows =?Utf-8?B?d2poNTk=?= Microsoft Word Document Management 4 18th Nov 2005 04:09 PM
How to delete multiple rows bazish Microsoft Excel Worksheet Functions 3 15th Aug 2003 09:06 PM
What is the best way to delete multiple rows Terry Burns Microsoft ADO .NET 1 14th Aug 2003 05:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:07 AM.