Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Range.Delete and Range.Resize.Name performance issues

I have some code that

a) Deletes cells in a range (Shift:=xlLeft)
b) Inserts cells (Shift:=xlToRight)
c) and then, resizes the ranges and assigns the same name.

Example:

Set Global_Board = Range("Select.Method.Results")
a)
Global_Board.Offset(-3, 1).Resize(NbLayerMax + 4, Global_Board.Columns.Count
- 1).Delete Shift:=xlToLeft

b & c) With Global_Board
.Offset(-3, 1).Resize(NbLayerMax + 4, NBMethod_Selected - 1).Insert
Shift:=xlToRight
.Resize(, NBMethod_Selected).name = "Select.Method.Results"
End With

There are 3 such ranges that these operations are being performed upon.

I've noticed that there's a signicant cumulative delay in performing these
steps when the code is run repeatedly. Over 20 iterations, it can grow to
several seconds. The size of the ranges is typically 10rx1c.

Is there a workaround? How else can I change this (inherited) code?

Thanks

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
How to Delete blanks between a range and populate only the names inthe given range Yuvraj Excel Discussion (Misc queries) 2 November 4th 09 08:32 PM
New Range resize Question Ray Batig Excel Programming 5 September 7th 04 02:49 AM
Range resize Ray Batig Excel Programming 4 September 7th 04 01:23 AM
Range Resize jacqui Excel Programming 2 April 6th 04 06:22 PM
Resize Range Problem ExcelMonkey[_16_] Excel Programming 3 January 23rd 04 11:15 PM


All times are GMT +1. The time now is 03:20 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"