-
VBE Toolbars and Windows
I know you can reference the different VB windows with VB code - is there
some way to reference the toolbars in the VB Editor window?
Also, the whole, overall window that appears when you enter the VB Editor -
is this the '....VBE.MainWindow'?
--
Bill @ UAMS -
Re: VBE Toolbars and Windows
"BillCPA" <Bill @ UAMS> wrote in message
>I know you can reference the different VB windows with VB code - is there
> some way to reference the toolbars in the VB Editor window?
Dim objVBE As VBE
Dim cbr As CommandBar
Set objVBE = Excel.Application.VBE
Set bars = objVBE.CommandBars
For Each cbr In objVBE.CommandBars
Debug.Print cbr.Name
Next
Set cbr = objVBE.CommandBars("Menu Bar")
Debug.Print cbr.Name
> Also, the whole, overall window that appears when you enter the VB
> Editor -
> is this the '....VBE.MainWindow'?
Yes
also look at
For Each W in objVBE.Windows
Regards,
Peter T -
Re: VBE Toolbars and Windows
Application.VBE.CommandBars is the root of all command and menu bars
in the VBA Editor. Yes, Application.VBE.MainWindow is the editor's
main application window.
Cordially,
Chip Pearson
Microsoft MVP 1998 - 2010
Pearson Software Consulting, LLC www.cpearson.com
[email on web site]
On Thu, 11 Mar 2010 11:07:01 -0800, BillCPA <Bill @ UAMS> wrote:
>I know you can reference the different VB windows with VB code - is there
>some way to reference the toolbars in the VB Editor window?
>
>Also, the whole, overall window that appears when you enter the VB Editor -
>is this the '....VBE.MainWindow'? Similar Threads -
By Bishop in forum Programming (VBA, VB, C# etc)
Replies: 2
Last Post: 08-13-2009, 03:30 PM -
By CQX Ray in forum Excel Setup
Replies: 1
Last Post: 08-05-2009, 08:31 AM -
By Aaron in forum Programming (VBA, VB, C# etc)
Replies: 1
Last Post: 03-14-2009, 01:38 AM -
By Stratuser in forum Programming (VBA, VB, C# etc)
Replies: 2
Last Post: 01-21-2009, 09:01 PM -
By Badtaste2k@gmail.com in forum Programming (VBA, VB, C# etc)
Replies: 2
Last Post: 01-21-2009, 06:07 PM Posting Permissions - You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Bookmarks