ListDataFormat.Required Property (Excel)

Returns a Boolean value indicating whether the schema definition of a column requires data before the row is committed. Read-only Boolean.

Syntax

expression .Required

expression A variable that represents 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 Required property for the third column of a list in Sheet1 of the active workbook.

 
Sub Test() 
 Dim wrksht As Worksheet 
 Dim objListCol As ListColumn 
 
 Set wrksht = ActiveWorkbook.Worksheets("Sheet1") 
 Set objListCol = wrksht.ListObjects(1).ListColumns(3) 
 
 Debug.Print objListCol.ListDataFormat.Required 
End Sub

See Also

Concepts

ListDataFormat Object Members

ListDataFormat Object