The Protection property of a CommandBar object provides you with many options for protecting a CommandBar.
Sub commdBar() CommandBars("MyToolbar").Protection = msoBarNoCustomize End Sub