J
JRD
I picked up the following code from this forum and it works just fine to
add items to the right click menu (thanks, guys!):
Public Sub RClick_Additem()
Dim Ctrl As CommandBarControl
Set Ctrl = Application.CommandBars("Cell").Controls.Add
Ctrl.Caption = "Building"
Ctrl.OnAction = "Coverage_Building"
Set Ctrl = Application.CommandBars("Cell").Controls.Add
Ctrl.Caption = "APS"
Ctrl.OnAction = "Coverage_APS"
Set Ctrl = Application.CommandBars("Cell").Controls.Add
Ctrl.Caption = "Contents"
Ctrl.OnAction = "Coverage_Contents"
I have many more items to add to this right click menu and this, of
course, causes the menu to become full. Is there a way to make
sub-menus to the right click menu, like:
Coverages ---> Building
---> APS
---> Contents
Roofing-------->3 Tab
-------->Dimensional
-------->Built-up
etc. and assign macros to each sub-item?
Thanks very much for your help.
Jim
add items to the right click menu (thanks, guys!):
Public Sub RClick_Additem()
Dim Ctrl As CommandBarControl
Set Ctrl = Application.CommandBars("Cell").Controls.Add
Ctrl.Caption = "Building"
Ctrl.OnAction = "Coverage_Building"
Set Ctrl = Application.CommandBars("Cell").Controls.Add
Ctrl.Caption = "APS"
Ctrl.OnAction = "Coverage_APS"
Set Ctrl = Application.CommandBars("Cell").Controls.Add
Ctrl.Caption = "Contents"
Ctrl.OnAction = "Coverage_Contents"
I have many more items to add to this right click menu and this, of
course, causes the menu to become full. Is there a way to make
sub-menus to the right click menu, like:
Coverages ---> Building
---> APS
---> Contents
Roofing-------->3 Tab
-------->Dimensional
-------->Built-up
etc. and assign macros to each sub-item?
Thanks very much for your help.
Jim