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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,734
Messages
6,126,544
Members
449,316
Latest member
sravya

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