ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Need to Customize Workbook tabs Context Menu (https://www.excelbanter.com/excel-programming/359461-re-need-customize-workbook-tabs-context-menu.html)

JE McGimpsey

Need to Customize Workbook tabs Context Menu
 
Try the "Ply" bar

In article .com,
wrote:

Can anyone tell me how to access the Workbook tabs context menu?

I thought I had found the right menu name but when I run the following
code I just get the list of tab names when I thought I would get the
list of context menu items...

Sub Macro1()
Dim i As Integer
Dim x As Integer
Application.CommandBars("Workbook tabs").Reset

With Application.CommandBars("Workbook tabs")
i = .Controls.Count
For x = 1 To i
Debug.Print .Controls(x).Caption
Next
End With
End Sub

I need to prevent the user from changing the structure of the workbook
so I'd like to remove/disable this menu completely if possible.

Kind regards,
Nick.


[email protected]

Need to Customize Workbook tabs Context Menu
 
Sorted! (what a strange name for it)

Many thanks JE

Nick


JE McGimpsey

Need to Customize Workbook tabs Context Menu
 
I've always thought it rather an evocative name - as in layers of wood
(plywood), fabric (bias-ply tires), paper or roofing. Seems appropriate
for the visual metaphor.

Of course "ply" also means to pursue diligently ("ply your trade"),
travel a regular route ("ply the seas") and "to wield vigorously" as in
plying an ax, so pick your image...

In article .com,
wrote:

Sorted! (what a strange name for it)


NickH

Need to Customize Workbook tabs Context Menu
 
Layers, of course, your right it does make sense. I guess I wasn't
apPLYing my brain. Ho ho ha ha, oh my sides.

NickH



All times are GMT +1. The time now is 04:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com