Syntax

expression.Min

expression An expression that returns a ControlFormat object.

Return Value
Long

Remarks

The value of the Min property must be less than the value of the property.

Example

This example creates a scroll bar and sets its linked cell, minimum, maximum, large change, and small change values.

Visual Basic for Applications
Set sb = Worksheets(1).Shapes.AddFormControl(xlScrollBar, _ Left:=10, Top:=10, Width:=10, Height:=200) With sb.ControlFormat .LinkedCell = "D1" .Max = 100 .Min = 0 .LargeChange = 10 .SmallChange = 2 End With
Change a spinner to have a certain minimum value? Do not allow a spinner to go below 2? MIN Min Property Set the minimum value for a scrollbar or spinner?

See also: