This documentation is archived and is not being maintained.

MaxNumber Property [Excel 2003 VBA Language Reference]

Office 2003

Returns a Variant containing the maximum value allowed in this field in the list column. The Nothing object is returned if a maximum value number has not been specified or if the Type property setting is such that a maximum value for the column is not applicable. Read-only Variant.

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


expression Required. An expression that returns a




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.


The following example displays the setting of the MaxNumber 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.MaxNumber