Hi,
Can we automate to run two different macros at different interval.
means one macro to run at one time followed by another macro at respective intervals.
Thanks,
Nitil
Hi,
Can we automate to run two different macros at different interval.
means one macro to run at one time followed by another macro at respective intervals.
Thanks,
Nitil
Nitil
Firstly, you should read Don's tutorial Run a Macro at Set Intervals in Excel
In the attached file, i've taken the file from that tutorial and copied (/tweaked) the three macros (now macro2 etc.) and placed two more buttons on the sheet, assigning the new macros to them as appropriate.
Click the grey "Start" button, and you'll get a message every 5 seconds. Click the pink "Start 2" button and you'll get another message every 13 seconds.
These are running in parallel. Press a Stop button (and wait a bit) for either to cease.
To use them practically, you need to adjust the timings and replace the MsgBox with whatever you want to do.
REVISION 1: attached amended file (since original called wrong timer for second macro).
Hope this helps.