LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default Excel 2003: VBA: How to Speed Up Row Deletions

Looking for suggestion on how to change the following as required,
to greatly improve speed of operation.
Without the following: about 5-6 seconds
WITH the following: about 30 seconds.

Dim LastRow As Long
Application.ScreenUpdating = False
LastRow = ActiveSheet.Cells(Rows.Count, "B").End(xlUp).Row
For RowNdx = LastRow To 1 Step -1
If Cells(RowNdx, "B").Value = "x" Then
Rows(RowNdx).Delete
End If
Next RowNdx

 
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
Excel 2003 speed up printer kfreasstudio Excel Discussion (Misc queries) 1 March 3rd 09 01:10 PM
calculation speed of Excel 2003 and Excel 2000 calc difference in Excel 2003 and 2000 Excel Discussion (Misc queries) 0 March 23rd 07 09:18 PM
Speed VBA Excel 2003 vs 2007 blue7hand Excel Programming 2 June 10th 06 05:53 AM
Trendline Properties/Deletions in Excel VBA Bennett[_2_] Excel Programming 4 March 31st 05 03:15 PM
Speed--Excel 2003 RAND vs. VBA Rnd... TIMERESRCH Excel Programming 2 February 5th 04 02:49 PM


All times are GMT +1. The time now is 12:50 PM.

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

About Us

"It's about Microsoft Excel"