ListDataFormat.MaxCharacters Property
Excel Developer Reference |
Returns a Long containing the maximum number of characters allowed in the ListColumn object if the Type property is set to xlListDataTypeText or xlListDataTypeMultiLineText. Read-only Long.
Syntax
expression.MaxCharacters
expression A variable that represents a ListDataFormat object.
Remarks
Returns -1 for columns whose Type property is set to a non-text value.
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. You can set these properties, however, by modifying the list on the SharePoint site.
Example
The following example displays the setting of the MaxCharacters property for the third column of a list in Sheet1 of the active workbook.
Visual Basic for Applications |
---|
|
See Also