Copy Method
Description
Copies the gallery control to a specified menu bar, ribbon bar, or toolbar in the indicated position.
Syntax
Public Function Copy( _
ByVal [Bar] As CommandBar, _
Optional ByVal [Before] As Variant _
) As CommandBarControl
Parameters
- Bar: The CommandBar that the CommandBarGallery control will be copied to.
- Before: The index of the control within the CommandBar the CommandBarGallery is being copied to. The CommandBarGallery control will be added before the item with the given index.
Return Type
A reference to the new CommandBarGallery control (copy of original).
See Also

Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.