Provides time for other windows to do processing.
Yields(count)
(s) count number of yields to perform.
(not applicable)
Use this command to give other running windows time to process. This command will allow each open window to process 20 or more messages.
This function is the same as the "Yield" command, but allows you to specify the number of yields to perform; i.e., "Yields(5)" is the same as 5 consecutive "Yield" commands.
The Yield waits a very short time. The TimeDelay function gives other running windows time to process messages, like the Yield does. TimeDelay might be better to use for longer time delays.
; run Excel and give it some time to start up Run("excel.exe", "") Yields(300)