Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default deleting mutliple rows in different ranges at same time

I was just wondering if there is anyway to delete multiple rows in different
ranges at the same time? I have a spreadsheet and I was doing the deletion
at the same time as I was populating one of the columns and when I do the
deletion it deletes the row but then all the rows below it move up one and I
am deleting things I don't want to. All I would like to do is highlight with
in rows 10-25 certain ones that contain 0 values in column C and delete them
and at the same time rows 38-46 that have 0 values in column C delete them.
If I delete the first range then my original rows which were 38 - 46 become
different rows and therefore I am looking at the wrong data. Any help or
suggestions I would appreciate, I don't know if you can do this or not but it
would be great if you could.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default deleting mutliple rows in different ranges at same time

Work bottom-up instead of top-down.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"HeatherO" wrote in message
...
I was just wondering if there is anyway to delete multiple rows in

different
ranges at the same time? I have a spreadsheet and I was doing the

deletion
at the same time as I was populating one of the columns and when I do the
deletion it deletes the row but then all the rows below it move up one and

I
am deleting things I don't want to. All I would like to do is highlight

with
in rows 10-25 certain ones that contain 0 values in column C and delete

them
and at the same time rows 38-46 that have 0 values in column C delete

them.
If I delete the first range then my original rows which were 38 - 46

become
different rows and therefore I am looking at the wrong data. Any help or
suggestions I would appreciate, I don't know if you can do this or not but

it
would be great if you could.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default deleting mutliple rows in different ranges at same time

I was thinking of that as I was writing this. Can I do a for counter = 25 to
10?? I think my coffee just has not sunk in yet. I know there is a way.
Thanks for your help.

"Bob Phillips" wrote:

Work bottom-up instead of top-down.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"HeatherO" wrote in message
...
I was just wondering if there is anyway to delete multiple rows in

different
ranges at the same time? I have a spreadsheet and I was doing the

deletion
at the same time as I was populating one of the columns and when I do the
deletion it deletes the row but then all the rows below it move up one and

I
am deleting things I don't want to. All I would like to do is highlight

with
in rows 10-25 certain ones that contain 0 values in column C and delete

them
and at the same time rows 38-46 that have 0 values in column C delete

them.
If I delete the first range then my original rows which were 38 - 46

become
different rows and therefore I am looking at the wrong data. Any help or
suggestions I would appreciate, I don't know if you can do this or not but

it
would be great if you could.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default deleting mutliple rows in different ranges at same time



--

HTH

RP
(remove nothere from the email address if mailing direct)


"HeatherO" wrote in message
...
I was thinking of that as I was writing this. Can I do a for counter = 25

to
10?? I think my coffee just has not sunk in yet. I know there is a way.
Thanks for your help.

"Bob Phillips" wrote:

Work bottom-up instead of top-down.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"HeatherO" wrote in message
...
I was just wondering if there is anyway to delete multiple rows in

different
ranges at the same time? I have a spreadsheet and I was doing the

deletion
at the same time as I was populating one of the columns and when I do

the
deletion it deletes the row but then all the rows below it move up one

and
I
am deleting things I don't want to. All I would like to do is

highlight
with
in rows 10-25 certain ones that contain 0 values in column C and

delete
them
and at the same time rows 38-46 that have 0 values in column C delete

them.
If I delete the first range then my original rows which were 38 - 46

become
different rows and therefore I am looking at the wrong data. Any help

or
suggestions I would appreciate, I don't know if you can do this or not

but
it
would be great if you could.






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default deleting mutliple rows in different ranges at same time

Yes

For cntr = 25 To 10 Step -1
...
Next cntr

--

HTH

RP
(remove nothere from the email address if mailing direct)


"HeatherO" wrote in message
...
I was thinking of that as I was writing this. Can I do a for counter = 25

to
10?? I think my coffee just has not sunk in yet. I know there is a way.
Thanks for your help.

"Bob Phillips" wrote:

Work bottom-up instead of top-down.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"HeatherO" wrote in message
...
I was just wondering if there is anyway to delete multiple rows in

different
ranges at the same time? I have a spreadsheet and I was doing the

deletion
at the same time as I was populating one of the columns and when I do

the
deletion it deletes the row but then all the rows below it move up one

and
I
am deleting things I don't want to. All I would like to do is

highlight
with
in rows 10-25 certain ones that contain 0 values in column C and

delete
them
and at the same time rows 38-46 that have 0 values in column C delete

them.
If I delete the first range then my original rows which were 38 - 46

become
different rows and therefore I am looking at the wrong data. Any help

or
suggestions I would appreciate, I don't know if you can do this or not

but
it
would be great if you could.






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sumproduct across mutliple sheets - deleting row in one sheet StephenT Excel Discussion (Misc queries) 2 March 17th 10 08:59 AM
Selecting mutliple ranges Scott Graft Excel Worksheet Functions 4 June 13th 08 08:36 PM
Deleting Named Ranges Carl Excel Worksheet Functions 2 August 31st 06 07:16 PM
Ranges - Deleting Stan Altshuller Excel Worksheet Functions 1 December 9th 04 05:10 PM
deleting rows, takes a long time! Nick Excel Programming 1 July 22nd 03 03:38 AM


All times are GMT +1. The time now is 11:46 AM.

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

About Us

"It's about Microsoft Excel"