MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old Mar 30th, 2004, 04:13 PM   #1
Emily
 
Join Date: Aug 2002
Location: Hong Kong, China
Posts: 304
Default Where is Commandbars(1).Controls(8)

Below code can list 10 items but I can only find 9 on the menu bar, where is the eighth one, i.e. between "Data(D)" and "Window(W)"

Thanks

Code:
With Application.CommandBars(1)
   i = 1
   For Each c In .Controls
      Cells(i, 1) = c.Caption
      Cells(i, 2) = c.ID
      i = i + 1
    Next
End With
Emily is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

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 On

Forum Jump


All times are GMT +1. The time now is 10:08 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.