mr_unreliable replied to Ajay
19-Dec-09 09:45 PM
hi Sanseen,
The script is running under the scheduler, and your pc
is locked due to inactivity, so I am guessing that you
are not around.
If you are not around but expecting to use sendkeys,
then the answers to the dialogs must already be built
into your script.
If you can change the XL macro code, then you could
write your info/data into a temporary file, and then
have the XL macro read the file rather than use a
dialog to get the info/data. Or an even more direct
solution would be to enter your data into an unused
area of the worksheet and have the macro pick it up
from there (and then clear those cells when you are
done).
If you can _not_ change the XL macro, then I think you
are SOOL.
Er well, on second thought maybe there is another
possibility. It may be possible to "pipe in" your
input via the "StdIn" mechanism. Take a look at the
conjunction with an XL dialog (or any other dialog),
but it may be worth a shot.
cheers, jw