PC Review


Reply
Thread Tools Rate Thread

Code to launch VB editor

 
 
Boog
Guest
Posts: n/a
 
      12th Dec 2008
I am running XP with Office 2002.

What is the VB code to launch the VB editor.

I would like to assign it to a toolbar button. It would save time, albeit
very little, but in the world of nanoseconds and milliseconds, it is long.

I have searched newsgroups, Google and visited various websites. Chip
Pearson's site is superlative at providing code to work in the editor but I
did not locate the code to actually launch the editor. I have also used all
combinations of code in VB (ie: Application.VBE. ...) but cannot produce the
desired result.

Thank you ahead of time for your time and consideration.
 
Reply With Quote
 
 
 
 
Office_Novice
Guest
Posts: n/a
 
      12th Dec 2008
Sub vbe()
Application.vbe.MainWindow.Visible = True
End Sub
'Tools -->Macro-->Security
'Click the Trusted Publisher Tab
'Click Trust access to Visual Basic Project Checkbox
'Click ok




"Boog" wrote:

> I am running XP with Office 2002.
>
> What is the VB code to launch the VB editor.
>
> I would like to assign it to a toolbar button. It would save time, albeit
> very little, but in the world of nanoseconds and milliseconds, it is long.
>
> I have searched newsgroups, Google and visited various websites. Chip
> Pearson's site is superlative at providing code to work in the editor but I
> did not locate the code to actually launch the editor. I have also used all
> combinations of code in VB (ie: Application.VBE. ...) but cannot produce the
> desired result.
>
> Thank you ahead of time for your time and consideration.

 
Reply With Quote
 
Boog
Guest
Posts: n/a
 
      12th Dec 2008
That has to be the only combination I didn't try.

Thank you for the prompt solution.

Cheers.

"Office_Novice" wrote:

> Sub vbe()
> Application.vbe.MainWindow.Visible = True
> End Sub
> 'Tools -->Macro-->Security
> 'Click the Trusted Publisher Tab
> 'Click Trust access to Visual Basic Project Checkbox
> 'Click ok
>
>
>
>
> "Boog" wrote:
>
> > I am running XP with Office 2002.
> >
> > What is the VB code to launch the VB editor.
> >
> > I would like to assign it to a toolbar button. It would save time, albeit
> > very little, but in the world of nanoseconds and milliseconds, it is long.
> >
> > I have searched newsgroups, Google and visited various websites. Chip
> > Pearson's site is superlative at providing code to work in the editor but I
> > did not locate the code to actually launch the editor. I have also used all
> > combinations of code in VB (ie: Application.VBE. ...) but cannot produce the
> > desired result.
> >
> > Thank you ahead of time for your time and consideration.

 
Reply With Quote
 
Martin
Guest
Posts: n/a
 
      12th Dec 2008
You could also use this:

CommandBars("Worksheet Menu
Bar").Controls("Tools").Controls("Macro").Controls("Visual Basic
Editor").accDoDefaultAction

"Boog" wrote:

> That has to be the only combination I didn't try.
>
> Thank you for the prompt solution.
>
> Cheers.
>
> "Office_Novice" wrote:
>
> > Sub vbe()
> > Application.vbe.MainWindow.Visible = True
> > End Sub
> > 'Tools -->Macro-->Security
> > 'Click the Trusted Publisher Tab
> > 'Click Trust access to Visual Basic Project Checkbox
> > 'Click ok
> >
> >
> >
> >
> > "Boog" wrote:
> >
> > > I am running XP with Office 2002.
> > >
> > > What is the VB code to launch the VB editor.
> > >
> > > I would like to assign it to a toolbar button. It would save time, albeit
> > > very little, but in the world of nanoseconds and milliseconds, it is long.
> > >
> > > I have searched newsgroups, Google and visited various websites. Chip
> > > Pearson's site is superlative at providing code to work in the editor but I
> > > did not locate the code to actually launch the editor. I have also used all
> > > combinations of code in VB (ie: Application.VBE. ...) but cannot produce the
> > > desired result.
> > >
> > > Thank you ahead of time for your time and consideration.

 
Reply With Quote
 
Bernie Deitrick
Guest
Posts: n/a
 
      12th Dec 2008
Alt-F11 will also open the VBE, and takes less time than mousing over a button, if your hands are
already on the keyboard....

HTH,
Bernie
MS Excel MVP


"Boog" <(E-Mail Removed)> wrote in message
news:F0346EC3-76C8-4A7E-AE19-(E-Mail Removed)...
>I am running XP with Office 2002.
>
> What is the VB code to launch the VB editor.
>
> I would like to assign it to a toolbar button. It would save time, albeit
> very little, but in the world of nanoseconds and milliseconds, it is long.
>
> I have searched newsgroups, Google and visited various websites. Chip
> Pearson's site is superlative at providing code to work in the editor but I
> did not locate the code to actually launch the editor. I have also used all
> combinations of code in VB (ie: Application.VBE. ...) but cannot produce the
> desired result.
>
> Thank you ahead of time for your time and consideration.



 
Reply With Quote
 
Boog
Guest
Posts: n/a
 
      12th Dec 2008
Bernie,

I have used Alt-F11 in the past but I usually have the mouse in hand.

Thanks to all for their input.

"Bernie Deitrick" wrote:

> Alt-F11 will also open the VBE, and takes less time than mousing over a button, if your hands are
> already on the keyboard....
>
> HTH,
> Bernie
> MS Excel MVP
>
>
> "Boog" <(E-Mail Removed)> wrote in message
> news:F0346EC3-76C8-4A7E-AE19-(E-Mail Removed)...
> >I am running XP with Office 2002.
> >
> > What is the VB code to launch the VB editor.
> >
> > I would like to assign it to a toolbar button. It would save time, albeit
> > very little, but in the world of nanoseconds and milliseconds, it is long.
> >
> > I have searched newsgroups, Google and visited various websites. Chip
> > Pearson's site is superlative at providing code to work in the editor but I
> > did not locate the code to actually launch the editor. I have also used all
> > combinations of code in VB (ie: Application.VBE. ...) but cannot produce the
> > desired result.
> >
> > Thank you ahead of time for your time and consideration.

>
>
>

 
Reply With Quote
 
Boog
Guest
Posts: n/a
 
      12th Dec 2008
Thank you Martin

"Martin" wrote:

> You could also use this:
>
> CommandBars("Worksheet Menu
> Bar").Controls("Tools").Controls("Macro").Controls("Visual Basic
> Editor").accDoDefaultAction
>
> "Boog" wrote:
>
> > That has to be the only combination I didn't try.
> >
> > Thank you for the prompt solution.
> >
> > Cheers.
> >
> > "Office_Novice" wrote:
> >
> > > Sub vbe()
> > > Application.vbe.MainWindow.Visible = True
> > > End Sub
> > > 'Tools -->Macro-->Security
> > > 'Click the Trusted Publisher Tab
> > > 'Click Trust access to Visual Basic Project Checkbox
> > > 'Click ok
> > >
> > >
> > >
> > >
> > > "Boog" wrote:
> > >
> > > > I am running XP with Office 2002.
> > > >
> > > > What is the VB code to launch the VB editor.
> > > >
> > > > I would like to assign it to a toolbar button. It would save time, albeit
> > > > very little, but in the world of nanoseconds and milliseconds, it is long.
> > > >
> > > > I have searched newsgroups, Google and visited various websites. Chip
> > > > Pearson's site is superlative at providing code to work in the editor but I
> > > > did not locate the code to actually launch the editor. I have also used all
> > > > combinations of code in VB (ie: Application.VBE. ...) but cannot produce the
> > > > desired result.
> > > >
> > > > Thank you ahead of time for your time and consideration.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access 2007 VB Editor fails to launch Clare-in-Sydney Microsoft Access 0 1st May 2008 06:47 AM
I can't launch the VBA editor or record a macro =?Utf-8?B?VG9tIEdsaXR6bmVy?= Microsoft Windows 2000 2 25th Jan 2006 01:36 AM
convert code written without editor to editor compatible? Billy Greening Microsoft C# .NET 4 8th Jun 2004 02:34 PM
Can't launch my graphics editor by double-clicking on a file name in Explorer Jerry Rivers Windows XP General 0 23rd Oct 2003 12:20 PM
Word as email editor taking a long time to launch Houston Brown Microsoft Access 0 31st Jul 2003 06:00 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:06 PM.