I am using the following to set some menu items to not visible:-
Dim cbc As Object
Set cbc = CommandBars.FindControl(, , 10)
cbc.Visible = False
Set cbc = Nothing
If there is no menu item with tag 10 then I get an error "Obect variable not set"
Is there a way that I can check to see it the findcontrol found anything and if not do nothing
If cbc <> nothing then (this doesn't work).