IsPriorityDropped Property Example

This example checks the IsPriorityDropped property for the first control on the command bar named “Custom.” If IsPriorityDropped is True, the example sets the AdaptiveMenus property to False, restoring the dropped command bar.

If CommandBars("Custom").Controls(1).IsPriorityDropped Then
    CommandBars.AdaptiveMenus = True
End If