Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Built In CommandBars

On Fri, 1 Aug 2003 06:00:47 -0400, Dave Martin wrote:

I posted this yesterday but don't see it in my Microsoft Outlook Newsreader,
so let me try again. (By the way--if anyone has any suggestions on making
sure the posts appear in the newsreader, I'm all ears. I've been struggling
with this for years).

I would like to add an item to, say the shortcut menu which appears when a
user right clicks the X Axis on a chart embedded in an Excel 2000 worksheet.
I can't find a listing of the names of the built in command bars. Can
someone suggest where I can find a list of built in command bars (the only
one I know is "Worksheet Menu Bar."


Try this code, put it in a module and run in on a new workbook:

Sub CmdBar_ToolBar()

Dim cmdbar, i As Integer, toolbar

Range("A1").Activate
i = 0
For Each cmdbar In Application.CommandBars
ActiveCell.Offset(i, 0).Value = cmdbar.Index
ActiveCell.Offset(i, 1).Value = cmdbar.Name
i = i + 1
Next cmdbar

i = 0
For Each toolbar In Application.Toolbars
ActiveCell.Offset(i, 2).Value = toolbar.Name
i = i + 1
Next toolbar
End Sub

It'll give you all the names of the different command-bars and tool-bars.
It's then up to you to find the correct one...

Good luck!

SL
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel CommandBars Daniel Utsch[_2_] Excel Discussion (Misc queries) 3 December 14th 08 07:17 PM
Built In Name Error Christa Excel Discussion (Misc queries) 5 September 8th 08 09:02 PM
List of CommandBars & Control IDs Silena K-K Excel Discussion (Misc queries) 5 May 28th 08 08:45 PM
Saving CommandBars DRA Excel Discussion (Misc queries) 0 November 21st 06 11:28 PM
Built in Commandbars Dave Martin Excel Programming 2 August 31st 03 03:47 AM


All times are GMT +1. The time now is 05:53 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"