is there a code to disable all menues?
is there a code to disable all menues?
Try with this code:
Regards,![]()
Sub DisableMenui() On Error Resume Next For Each cmdBar In Application.CommandBars For Each ctl In cmdBar.Controls ctl.Enabled = False For Each ctl1 In ctl.Controls ctl1.Enabled = False Next Next Next End Sub
Antonio
be extremely careful when using such code. You have to re-set all menus back to the user's settings. The posted code will disable the menus, but if you do not enable the ones that the user has visible afterwards then you will annoy you users!
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks