Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Returns the CommandBarControls collection that fits the specified criteria.
Syntax
expression**.FindControl(Type**, Id, Tag, Visible)
expression Required. An expression that returns a CommandBars collection.
Type Optional Variant. The type of control. Can be one of the following MsoControlType constants:
| msoControlActiveX
msoControlCustom msoControlButton msoControlEdit msoControlDropdown msoControlComboBox msoControlButtonDropdown msoControlSplitDropdown msoControlGenericDropdown msoControlGraphicCombo msoControlSplitButtonMRUPopup msoControlSplitExpandingGrid |
msoControlGraphicDropdown
msoControlPopup msoControlGraphicPopup msoControlButtonPopup msoControlGauge msoControlLabel msoControlExpandingGrid msoControlGrid msoControlOCXDropDown msoControlSplitButtonPopup msoControlPane |
Id Optional Variant. The controls identifier.
Tag Optional Variant. The controls tag value.
Visible Optional Variant. True to include only visible command bar controls in the search. The default value is False.
Remarks
If no controls that fits the criteria are found, the FindControls method returns Nothing.