Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2006

Tip: Looking for answers? Try searching our database.

macro slows down

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gary Keramidas - 15 Jan 2006 17:23 GMT
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?

Signature

Gary

Gary Keramidas - 21 Jan 2006 23:35 GMT
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.

Signature

Gary

> just wondering if anyone has seen this
> this happens in all cases, but here is an example:
[quoted text clipped - 16 lines]
>
> any ideas?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.