Thanks.

I got the SendKeys sample from the Help file working nicely:

AppActivate Shell("calc.exe", 1)
For I = 1 To 100
SendKeys I & "{+}", True
Next I
SendKeys "=", True
SendKeys "%{F4}", True

How could I modify it so that I don't hardcode the executable? I'd like to be able to chose what running application gets focus.

Robert