Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 114
Default testing efficieny/speed of a macro

Hi,

I have a few macros which perform the same tasks. How can I measure
their speed of execution (start to finish), so I can only use the
fastest and delete the others. Also, would this be a good method of
identifying how efficient a macro is i.e using different looping
methods or the difference of copying data using filters or the offset
command?

I was thinking of some sort of timer to log the time taken for the
macro to run and complete?

any idea's?

Matt

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default testing efficieny/speed of a macro

One simple way

Dim nTime As Double

nTime = Timer

'your code

Msgbox Timer - nTime 'time i secs

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"MJKelly" wrote in message
oups.com...
Hi,

I have a few macros which perform the same tasks. How can I measure
their speed of execution (start to finish), so I can only use the
fastest and delete the others. Also, would this be a good method of
identifying how efficient a macro is i.e using different looping
methods or the difference of copying data using filters or the offset
command?

I was thinking of some sort of timer to log the time taken for the
macro to run and complete?

any idea's?

Matt



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
Testing for Valid Macro Name Sprinks Excel Programming 8 June 27th 07 04:38 PM
Increasing Macro Efficieny Phin Doyle Excel Discussion (Misc queries) 4 January 15th 07 01:42 PM
efficieny kevcar40 Excel Discussion (Misc queries) 2 February 2nd 06 03:01 PM
efficieny kevcar40 Excel Discussion (Misc queries) 0 February 2nd 06 01:30 PM
Run only part of a macro for testing Josh O. Excel Programming 4 May 19th 05 04:49 PM


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