enable right click

  • Thread starter Thread starter tommy_gtr
  • Start date Start date
T

tommy_gtr

hello,

I use the following code to hide all command bars in my excel file:
Private Sub Workbook_Open()

Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = False 'here to change
Next oCB

mFormulaBar = Application.DisplayFormulaBar
Application.DisplayFormulaBar = False
End Sub

but it also disable a mouse right click.

Can anyone help how to enable right click when other command bars are
hide.

thanks a lot

tommy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

RunWhen error 4
Hide the close X in excel 2
Code Stopped 1
Works too well - Hide toolbar Macro 4
Unable to disable macro 11
Close help 2
Help! Combine Macros 2
Restoring ToolBars/Commandbars 6

Back
Top