Skip to content

Latest commit

 

History

History
53 lines (30 loc) · 1.44 KB

Excel.ListDataFormat.MaxNumber.md

File metadata and controls

53 lines (30 loc) · 1.44 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
ListDataFormat.MaxNumber property (Excel)
vbaxl10.chm758080
vbaxl10.chm758080
Excel.ListDataFormat.MaxNumber
61262a29-7a35-e351-71fa-0b217285e2b3
04/30/2019
medium

ListDataFormat.MaxNumber property (Excel)

Returns a Variant containing the maximum value allowed in this field in the list column. Read-only Variant.

Syntax

expression.MaxNumber

expression A variable that represents a ListDataFormat object.

Remarks

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.

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

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

Example

The following example displays the setting of the MaxNumber property for the third column of a list on 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

[!includeSupport and feedback]