Edit

Share via


ListDataFormat.ReadOnly property (Excel)

Returns True if the object has been opened as read-only. Read-only Boolean.

Syntax

expression.ReadOnly

expression A variable that represents a ListDataFormat object.

Remarks

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

Example

The following example displays the setting of the ReadOnly property for the third column of a table on Sheet1 of the active workbook.

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

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.