共用方式為


ControlFormat Object (Excel)

Contains Microsoft Excel control properties.

Example

Use the ControlFormat property to return a ControlFormat object. The following example sets the fill range for a list box control on worksheet one.

注意

If the shape isn’t a control, the ControlFormat property fails; and if the control isn’t a list box, the ListFillRange property fails.

Worksheets(1).Shapes(1).ControlFormat.ListFillRange = "A1:A10"

請參閱

概念

Excel Object Model Reference

ControlFormat Object Members