Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Range Selection

Hello,

If I have a Total's line on line A5000, and sometimes it jumps to 5001 upto
5020 or more...

Is there anyway to count the rows in between Lines 5000 and 5020 and then
have the rows deleted?

Any help would be greatly appreciated :)

Thank you!

Tim
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Range Selection

K Dales...Thx...Thats great :) YEAH!

Tim

"K Dales" wrote:

For i = 5020 to 5000 step -1
If WorksheetFunction.CountA(Range(i & ":" & i)) = 0 Then Range("A" &
i).EntireRow.Delete
Next i

"MrHappy" wrote:

Hello,

If I have a Total's line on line A5000, and sometimes it jumps to 5001 upto
5020 or more...

Is there anyway to count the rows in between Lines 5000 and 5020 and then
have the rows deleted?

Any help would be greatly appreciated :)

Thank you!

Tim

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
Narrow Range based on Selection in Another Range David Excel Discussion (Misc queries) 3 July 1st 07 05:12 PM
Identifying a selection of a selection of a range swimfast Excel Worksheet Functions 1 March 1st 07 02:51 AM
Range Selection cfspahn24 Excel Discussion (Misc queries) 3 April 14th 06 01:29 PM
Excel VBA - Range(Selection, Selection.End(xlDown)).Name issue. jonH Excel Programming 3 June 7th 04 09:13 PM
Creating range name for a range selection Mervyn Thomas Excel Programming 1 January 26th 04 05:18 PM


All times are GMT +1. The time now is 06:36 PM.

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"