Many thanks Martin,
That's one of the things we've tried. However, if I give you a little more context you'll see why it's not working for our particular situation.
I've password-protected the code and form design in a database that is distributed on a number of computers. I need to update this database as a number of forms and some of the code has changed.
I need to access the VB window in order to 'SendKeys' the password to unlock the code (I can't find any other way of sending the password!).
Unfortunately, as part of the lockdown, I've also set the startup properties so that all the standard toolbards are no longer accessible. For this reason, SendKeys Alt-F11 doesn't work, as the standard toolbar isn't there!
So I'm looking for another method, via code, to either unlock the code or open the VB window (allowing SendKeys to plug in the password).
If you've any other suggestions I'm all ear!
Thanks,
Mark