Strange Macro request....

UKPhil

New Member
Joined
Jul 25, 2002
Messages
49
Hi guys, strange though it may sound I'm looking for a way to slow down the speed at which a macro executes so that in effect the user can see each step and understand the progression of my calculations. Anyone have any thoughts on how this could be done?
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Don't have any code at the ready, but most likely it would involve API GetTickCount, being called by a simple routine that accepts a Long argument (for thousandths of seconds).

Some sort of delay routine, regardless.


Or, the program could wait for keyboard input. Perhaps AnyKey being depressed, to step-through.
 
Upvote 0
try this;

newHour = Hour(Now())
newMinute = Minute(Now())
newSecond = Second(Now()) + 4 'change
waitTime = TimeSerial(newHour, newMinute, newSecond)
Application.Wait waitTime
 
Upvote 0
If it's not too many steps, why not just pop up a message box at key points, and you could even use the text to direct the user to certain cells.
 
Upvote 0

Forum statistics

Threads
1,215,442
Messages
6,124,886
Members
449,194
Latest member
ronnyf85

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top