Excel icon

Return Command bar info in a VBA function

In the previous post I showed a simple sub for listing most of the CommandBar properties. But we can also return this information using a function.

You might do this (in Excel versions prior to 2007) when working with a command bar and need to view its properties before making a change. Here is a function that returns a string array of properties for each Command Bar Object.
Continue Reading: Return Command bar info in a VBA function »

Excel icon

List all Command Bar Properties in Excel

If you work with Command Bars in Excel, or write add-ins for Excel 2003 that add custom menu options, you'll need to know various properties such as their names. A basic subroutine would look like this:

Continue Reading: List all Command Bar Properties in Excel »

Site last updated: February 9, 2012