Objective: To open a pdf report from Access03 module, use SendKeys to paste in a predetermined, client specific password for (already set-up) secure email sending. Close. Loop to next report.
Table contains client code, password. Match reports in folder by Client Code and Paste in strRptPath for correct report selection done.
Issue: Successfully launching Adobe Acrobat, BUT lose focus immediately and sendkeys ends up activating Access03 again.
Ideas? Help says the Shell() function returns a Task ID (Double) but how to capture this double value? (for continued focus on Acrobat App.)
This segment thus far:
Private Sub cmdAcrobat()
Dim stAppName, strPath As String
strPath = "C:\Reports\REPORT_TEST_CLIENT91.pdf"
stAppName = "C:\Program Files\Adobe\Acrobat 8.0\Acrobat\Acrobat.exe"
Call Shell(stAppName, 0)
[FOCUS RETURNS TO ACCESS03 HERE]
SendKeys "{F10}"
SendKeys "%F%O", True
SendKeys "^V" & strPath, True
Thanks, KA
Table contains client code, password. Match reports in folder by Client Code and Paste in strRptPath for correct report selection done.
Issue: Successfully launching Adobe Acrobat, BUT lose focus immediately and sendkeys ends up activating Access03 again.
Ideas? Help says the Shell() function returns a Task ID (Double) but how to capture this double value? (for continued focus on Acrobat App.)
This segment thus far:
Private Sub cmdAcrobat()
Dim stAppName, strPath As String
strPath = "C:\Reports\REPORT_TEST_CLIENT91.pdf"
stAppName = "C:\Program Files\Adobe\Acrobat 8.0\Acrobat\Acrobat.exe"
Call Shell(stAppName, 0)
[FOCUS RETURNS TO ACCESS03 HERE]
SendKeys "{F10}"
SendKeys "%F%O", True
SendKeys "^V" & strPath, True
Thanks, KA