Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default macro slows down

just wondering if anyone has seen this
this happens in all cases, but here is an example:

i loop through about a dozen workbooks, opening, copying some data to a
report workbook, and closing it.
if i load the report wb and run the macro, it takes maybe 3 seconds to
complete.
once i load the vb editor and close it, it takes about 7 seconds. so, this
is not run when the vb window is open.
closing the workbook and re-opening it doesn't speed it up, only closing
excel and running the macro before opening the vb editor speeds it up.

only have 5 references in vba:
vba
excel 11 obj lib
ole automation
office 11 obj lib
ms forms 2.0 obj lib

any ideas?

--


Gary



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default macro slows down

does anyone have any ideas on this? i load 42 sheets and import some data.
takes 6 seconds. after i open and immediately close the vbe, it takes 14
seconds. and it takes that long until i close excel and load it again. then
it takes 6 seconds again.

seems weird to me.

--


Gary


"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
just wondering if anyone has seen this
this happens in all cases, but here is an example:

i loop through about a dozen workbooks, opening, copying some data to a
report workbook, and closing it.
if i load the report wb and run the macro, it takes maybe 3 seconds to
complete.
once i load the vb editor and close it, it takes about 7 seconds. so, this
is not run when the vb window is open.
closing the workbook and re-opening it doesn't speed it up, only closing
excel and running the macro before opening the vb editor speeds it up.

only have 5 references in vba:
vba
excel 11 obj lib
ole automation
office 11 obj lib
ms forms 2.0 obj lib

any ideas?

--


Gary





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
Slows after about 1,000 records? Paul H[_2_] Excel Discussion (Misc queries) 3 June 3rd 09 01:21 PM
Filtering slows down a macro Curt D. Excel Worksheet Functions 1 October 13th 06 04:08 AM
ifsum slows down calculations Peter Nash Excel Worksheet Functions 2 September 10th 05 09:18 AM
Macro slows down on subsequent runs RWN Excel Programming 0 August 25th 05 01:47 AM
Excel macro slows down on second run lee777 Excel Programming 2 June 17th 04 02:28 PM


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