MS Access VBA App激活“发送传真”和SendKeys

时间:2018-10-03 18:27:53

标签: vba ms-access ms-access-2013 sendkeys fax

我正在向多功能传真机/打印机发送一系列访问报告。每个报告都是自定义的,需要转到特定的电话号码。我想实现自动化,但是它总是卡在脚本应输入数字并继续执行的位置。

DoCmd.PrintOut 'This works fine to print to the Fax

AppActivate "Send fax" 'This works as the window focus changes from MS Access to the Send fax dialog box

SendKeys "%f" & rst![Fax] 'This does not work and when I move the mouse around, I get a pointer when on the Send fax dialog box but a busy spinning circle when I move the mouse away from the dialog box.  It seems the process is hung up at AppActivate and not letting this part work.

SendKeys "%d99" 'This part would thus not work also

SendKeys "{Enter} 'This part would thus not work also

0 个答案:

没有答案