IsPercent Property

Microsoft Excel Visual Basic

Show All Show All

IsPercent Property

Returns a Boolean value. Returns True only if the number data for the ListColumn object will be shown in percentage formatting. Read-only Boolean.

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

expression.IsPercent

expression    Required. An expression that returns a ListDataFormat object.

Remarks

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

    Function GetIsPercent() As Boolean
    Dim wrksht As Worksheet
    Dim objListCol As ListColumn
   
    Set wrksht = ActiveWorkbook.Worksheets("Sheet1")
    Set objListCol = wrksht.ListObjects(1).ListColumns(3)

    GetIsPercent = objListCol.ListDataFormat.IsPercent
End Function