MinNumber Property

Microsoft Excel Visual Basic

MinNumber Property

Returns a Variant containing the minimum value allowed in this field in the list column. This can be a negative floating point number. This property will return the Nothing object if no value has been specified for this field or if the setting of the Type property is such that a minimum value is not applicable to the column. Read-only Variant.

This property is used only for lists that are linked to a SharePoint site.

expression.MinNumber

expression    Required. An expression that returns a ListDataFormat object.

Remarks

In Microsoft Excel, you cannot set any of the properties associated with the ListDataFormat object. You can set these properties, however, by modifying the list on the SharePoint site.

Example

The following example displays the setting of the MinNumber property for the third column of a list in Sheet1 of the active workbook.

       
   Dim wrksht As Worksheet
   Dim objListCol As ListColumn
   
   Set wrksht = ActiveWorkbook.Worksheets("Sheet1")
   Set objListCol = wrksht.ListObjects(1).ListColumns(3)

   Debug.Print objListCol.ListDataFormat.MinNumber