Click the print button
Hi I have the following code in VBA i just wanted to click the print button on the print pop
and enter a file name ans save
Code
Call objIE.document.parentWindow.execScript("doPrint()", "JavaScript")
used SendKeys "(%{ENTER})" ***but it does not work
please help
Attachment | Size |
---|---|
code stops.jpg | 57.37 KB |
did you do the SendKeys
did you do the SendKeys before the execScript command? I ask only because, erm, I've made a similar mistake once...
Chris
no used it after the
no used it after the execscript command
I think you'll need to use it
I think you'll need to use it before, in order to get the keypresses into the buffer. Otherwise your code will be waiting for the ExecScript command to finish.
Chris