Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Slowing Down a Macro

Hello,

I am wondering if it is possible to slow the speed down on how fast a macro
runs. For example, if you bring up the VB Editor and press the F8 key the
macro will run as long as you hold down the key (or you can just press the
key over and over). Doing this lets you see what is going on as the macro
runs.
However, if you press the play button the macro will run...very fast. It
runs so fast that you can't see what's going on.
So is there a way to slow down how fast it runs? In some cases I would like
the users to be able to see what the macro is doing.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Slowing Down a Macro

That worked!
Thanks Jim

"Jim Thomlinson" wrote:

You have to insert wait times. Here is a quick (or rather slow) example...
Run the test sub...

Public Sub Pause(ByVal WaitTime As Integer)
Application.Wait Now + TimeSerial(0, 0, WaitTime)
End Sub

Sub test()
MsgBox 1
Pause 2
MsgBox 2
Pause 4
MsgBox 3
End Sub

--
HTH...

Jim Thomlinson


"tedd13" wrote:

Hello,

I am wondering if it is possible to slow the speed down on how fast a macro
runs. For example, if you bring up the VB Editor and press the F8 key the
macro will run as long as you hold down the key (or you can just press the
key over and over). Doing this lets you see what is going on as the macro
runs.
However, if you press the play button the macro will run...very fast. It
runs so fast that you can't see what's going on.
So is there a way to slow down how fast it runs? In some cases I would like
the users to be able to see what the macro is doing.

Thanks

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
Slowing Down a Macro Jim Thomlinson Excel Programming 0 June 1st 06 08:31 PM
Macro slowing down gradualy... (duplicate post - use this) speeD72 Excel Programming 1 April 30th 04 10:01 PM
Macro and slowing a progress bar. Rockee052[_18_] Excel Programming 3 January 26th 04 09:34 PM
Macro slowing down after a while... SpeeD72 Excel Programming 3 October 25th 03 08:56 PM
Slowing Macro Dick Kusleika Excel Programming 1 July 29th 03 07:01 PM


All times are GMT +1. The time now is 07:53 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"