Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a maco with a number of loops in it that runs a bit slowly.
Recently I read a post in this NG that said : Macros that work on the worksheet cells are slow. You can greatly increase speed if you set up an array of the variant type from you worksheet cells then use code that works with the array. As my knowledge of arrays are minute I would be gratefull for a bit of advice how to change my macro. Part of my original macro below. Sub cdumacro() Dim cell As Range Application.ScreenUpdating = False Application.Calculation = xlManual For Each cell In Worksheets("cdu").Range("AS56:AS102") If cell.Value < "E" Then Range(cell.Value).Copy Range(cell.Offset(0, 1).Value).PasteSpecial Paste:=xlValues End If Next cell Alf |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
slow macro | Excel Discussion (Misc queries) | |||
Macro - very slow run in 2003 | Excel Discussion (Misc queries) | |||
Macro is very slow | Excel Discussion (Misc queries) | |||
Macro slow down | Excel Programming | |||
Macro it's very Slow .... | Excel Programming |