Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to reconfigure an XL95 workbook to work under XL97 (and
hopefully later versions.) The workbook has over 150 custom macros accessed through a custom menu bar. I'm trying to copy the custom menu bar headings and macro references into a spread sheet so as to facilitate their insertion into a new menu bar. Bob Phillips suggested that I use VB macro code like that below. If I copy the code into a VB module, the macro name "nextlevel" does not appear in the list of macros, and so I'm uncertain as to how to get the macro to run. IS IT SUPPOSED TO APPEAR IN THAT LIST? I'm also unfamiliar with the syntax for the name of the macro. All macros that I have created never had anything within the parenthesis. WHERE MIGHT I LEARN MORE ABOUT TEXT PLACED WITHIN ( ) ? Thanks ... WindsurferLA Sub nextlevel(ctlParent As CommandBarControl) Dim ctl As CommandBarControl iLevel = iLevel + 1 For Each ctl In ctlParent.Controls iRow = iRow + 1 Cells(iRow, "A").Value = iLevel Cells(iRow, "B").Value = ctl.Caption Cells(iRow, "C").Value = ctl.OnAction Cells(iRow, "D").Value = IIf(ctl.BeginGroup, "TRUE", "") If ctl.Type = msoControlPopup Then Cells(iRow, "E").Value = "" Else Cells(iRow, "E").Value = ctl.FaceId End If If ctl.Type = msoControlPopup Then nextlevel ctl End If Next ctl iLevel = iLevel - 1 End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Extracting a code | Excel Discussion (Misc queries) | |||
Custom Menu Help | Excel Worksheet Functions | |||
VBA - Disappearing custom menu and custom toolbar | Excel Programming | |||
Custom Menu return to Excel Menu upon Closing | Excel Programming | |||
Custom Menu | Excel Programming |