![]() |
|
|
|||||||
| 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 |
|
|
#1 |
|
Join Date: Aug 2002
Location: Hong Kong, China
Posts: 304
|
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
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|