Class ControlFormat (Excel VBA)
Contains Microsoft Excel control properties.
Class Shape gives access to class ControlFormat.
Methods
AddItem - Adds an item to a list box or a combo box.
List - Returns or sets the text entries in the specified list box or combo box, as an array of strings, or returns or sets a single text entry. An error occurs if there are no entries in the list.
RemoveAllItems - Removes all entries from a Microsoft Excel list box or combo box.
RemoveItem - Removes one or more items from a list box or combo box.
Properties
Value (Default member) - Returns or sets a Long value that represents the name of the specified control format.
DropDownLines returns or sets the number of list lines displayed in the drop-down portion of a combo box.
Enabled true if the object is enabled.
LargeChange returns or sets the amount that the scroll box increments or decrements for a page scroll (when the user clicks in the scroll bar body region).
LinkedCell returns or sets the worksheet range linked to the control's value. If you place a value in the cell, the control takes this value. Likewise, if you change the value of the control, that value is also placed in the cell.
ListCount returns the number of entries in a list box or combo box. Returns 0 (zero) if there are no entries in the list.
ListFillRange returns or sets the worksheet range used to fill the specified list box. Setting this property destroys any existing list in the list box.
ListIndex returns or sets the index number of the currently selected item in a list box or combo box.
LockedText true if the text in the specified object will be locked to prevent changes when the workbook is protected.
Max returns or sets the maximum value of a scroll bar or spinner range. The scroll bar or spinner won't take on values greater than this maximum value.
Min returns or sets the minimum value of a scroll bar or spinner range. The scroll bar or spinner won't take on values less than this minimum value.
MultiSelect returns or sets the selection mode of the specified list box. Can be one of the following constants: xlNone, xlSimple, or xlExtended.
PrintObject true if the object will be printed when the document is printed.
SmallChange returns or sets the amount that the scroll bar or spinner is incremented or decremented for a line scroll (when the user chooses an arrow).