LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 158
Default Macro execution time

I normally time macros by doing the following:

Sub MySub()
Dim myTime as date

myTime = now

'Run the rest of the macro

'The macro has finished so now write to the
'debug window the time taken (note this does
'not include fractions of a second).
debug.print format(now - mytime, "nn:ss")

End Sub

Without being able to access the code you probably won't be able to
achieve this though. Depending on how your 3rd party macro runs you
could try and invoke it programmatically by opening the workbook perhaps
or using SendKeys to fire it - and waiting for calculation to finish
before printing the time taken.

Or failing that: use the stopwatch on your cell phone?!

HTH,
Gareth

Henry wrote:
Greetings
I have seen several post here that reference a time to run a macro. How do
I time the excution? I have a spreadsheet that is 3rd party supplied and the
performance of calcs slows down tremedously as more files are opened. I know
the easy answere is dont open them, however it is necessary for the other
files
to be open. In that the macro is 3rd party I am unable to access it and
post it here. I would like to be able to provide performance time to the
author.
Thanks!

 
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
Macro Execution C Brandt Excel Discussion (Misc queries) 2 July 13th 07 07:23 AM
Macro Execution, Part Duo C Brandt Excel Discussion (Misc queries) 1 July 12th 07 10:57 PM
Automatic execution of macro Paul-André Gollier Excel Programming 1 January 30th 04 09:03 PM
Template Macro Execution Nigel[_8_] Excel Programming 1 January 28th 04 03:10 PM
Triggering Macro Execution Peter M[_3_] Excel Programming 1 January 12th 04 08:20 PM


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