Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening the visual basic editor window from code.

Status
Not open for further replies.

marklenel

Technical User
Aug 29, 2003
46
GB
Is it possible to open the visual basic editor window from code? If so how?
 
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
 
I agree! We started looking at copying only new and updated objects to the original system, then came across this problem.

Our current solution is to replace the entire front-end, and copy relevant data from the old system to the new one.
 
Hi,

If you want to open a specific module you can use:
Code:
VBE.VBProjects(1).VBComponents("Form_FormName").CodeModule.CodePane.Show
HTH,
Dean
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top