I have written a VBA procedure in Excel 2010 that tries to hidden commandbars and prevents several actions from the user.
I have included and run this code:
Dim Cbar As CommandBar
For Each Cbar In Application.CommandBars
Cbar.Enabled = False
Next
Now, when I opn ANY excel file the righ-click gives no action. I have to run a procedure with the same lines, but
Cbar.Enabled = True
to have the pop-up menu available with the right mouse button. The right-click works correctly in all other Office programs (word, etc)
Someone can help me ?
Thanks
Mauro
I have included and run this code:
Dim Cbar As CommandBar
For Each Cbar In Application.CommandBars
Cbar.Enabled = False
Next
Now, when I opn ANY excel file the righ-click gives no action. I have to run a procedure with the same lines, but
Cbar.Enabled = True
to have the pop-up menu available with the right mouse button. The right-click works correctly in all other Office programs (word, etc)
Someone can help me ?
Thanks
Mauro