Powerpoint "password" dialog box suspending execution of VB code when attempting to populate the password via sendkeys
Posted on 2005-04-30
I'm using the presentations.open method to launch a PowerPoint presentation within VB6. I wish to automatically fill-in the password dialog box that pops-up when launching a password protected .ppt. I received a previous suggestion on another thread to find and bring into focus the dialog box and then use sendkeys to populate the password.
The problem is: when the password dialog box is presented, the VB app stops executing any other commands until the dialog box is dismissed. I've tried using timers to get around this problem, but the timers also pause until the password dialog box is dismissed. Any suggestions to make this happen? Anyway around pausing the execution? Alternately, is there a way to pass the password within (or appended to) the presentations.open method?
Thanks for your help,