Closeable Property
Description
Gets/Sets a Boolean value indicating whether the command bar is closeable. If false, the command bar cannot be closed or hidden.
Property Type
Read-write property.
Syntax (Visual Basic)
Public Property Closeable() As Boolean
Remarks
Command Bars allow you to specify whether a specific command bar can be closed. If a command bar is not closeable, you will not be able to close or hide the command bar. You can use this to ensure that important controls are always displayed.
Note: If Closeable is FALSE, then the Command Bar cannot be unchecked in the toolbars page of the customization dialog.
Example
This sample code illustrates how to prevent the user from closing a specific command bar.
CommandBars(2).Closeable = False
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.