|Excel Developer Reference|
The ListDataFormat object holds all the data type properties of the ListColumn object. These properties are read-only.
Use the ListDataFormat property of the ListColumn object to return a ListDataFormat object. The default property of the ListDataFormat object is the Type property which indicates the data type of the list column. This allows the user to write code without specifying the Type property.
The following code example creates a linked list from a SharePoint list. It then checks to see if field 2 is required (field 1 is the ID field, which is read only). If it's a required text field, the same data is written in all existing records.
|The following code example assumes that you will substitute a valid server name and the list guid in the variables strServerName and strListGuid. Additionally, the server name must be followed by "/_vti_bin" or the sample will not work.|
|Visual Basic for Applications|