Share via


ListDataFormat.lcid Property (Excel)

Returns a Long value that represents the LCID for the ListColumn object that is specified in the schema definition. Read-only Long.

Syntax

expression .lcid

expression A variable that represents a ListDataFormat object.

Remarks

In Microsoft Excel, the LCID indicates the currency symbol to be used when this is an xlListDataTypeCurrency type. Returns 0 (which is the Language Neutral LCID) when no locale is set for the data type of the column.

This property is used only for tables that are linked to a Microsoft SharePoint Foundation site.

In 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 lcid property for the third column of the list in Sheet1 of the active workbook.

Sub DisplayLCID() 
 Dim wrksht As Worksheet 
 Dim objListCol As ListColumn 
 
 Set wrksht = ActiveWorkbook.Worksheets("Sheet1") 
 Set objListCol = wrksht.ListObjects(1).ListColumns(3) 
 
 MsgBox "List LCID: " & objListCol.ListDataFormat.lcid 
End Sub 

See Also

Concepts

ListDataFormat Object

ListDataFormat Object Members