Any body know how to check if a command bar exists or not?
i have a custom bar in my program that gets changed at different stages, but i the user deletes it then an error occurs when i try to change it because it does not exist.
So i have tried the CommandBars.FindControl method but am not sure about the verbage.
this method returns a CommandBarControl but i just need true or false.
something like this maybe
thank you
i have a custom bar in my program that gets changed at different stages, but i the user deletes it then an error occurs when i try to change it because it does not exist.
So i have tried the CommandBars.FindControl method but am not sure about the verbage.
this method returns a CommandBarControl but i just need true or false.
something like this maybe
Code:
(pseudo code)
If CommandBars("Custom Edit") Exists = True Then
UpdateBar
Else
MsgBox "Toolbar does not exist"
End If
thank you