T
tony wong
i have 3 scripts to run which are mainly making use of "sendkeys"
i can do it by VBA (run in Outlook).
However i wish to make use of Windows XP scheduler to run it in every 2
hours.
therefore i add the 1st 2 lines and run it by VB script, but it stops at
"sendkeys"
**************************
Set objWSHShell = CreateObject("WScript.Shell")
objWSHShell.Run("Outlook.exe")
WScript.Sleep 20000
SendKeys "%f"
SendKeys "{down 4}"
SendKeys "{enter}"
*******************
i have the following thoughts
1. to run it by VB scripts (but i don't know why stops at "sendkeys"
2. to run a VB scripts in which it activate the specified VBA in the Outlook
Grateful for any hints.
i can do it by VBA (run in Outlook).
However i wish to make use of Windows XP scheduler to run it in every 2
hours.
therefore i add the 1st 2 lines and run it by VB script, but it stops at
"sendkeys"
**************************
Set objWSHShell = CreateObject("WScript.Shell")
objWSHShell.Run("Outlook.exe")
WScript.Sleep 20000
SendKeys "%f"
SendKeys "{down 4}"
SendKeys "{enter}"
*******************
i have the following thoughts
1. to run it by VB scripts (but i don't know why stops at "sendkeys"
2. to run a VB scripts in which it activate the specified VBA in the Outlook
Grateful for any hints.