Partager via


TableView.ShowNewItemRow Property (Outlook)

Returns or sets a Boolean value that determines if the new item row is displayed in the TableView object. Read/write

Version Information

Version Added: Outlook 2007

Syntax

expression .ShowNewItemRow

expression A variable that represents a TableView object.

Remarks

The value of this property applies only if the AllowInCellEditing property is set to True.

Example

The following Visual Basic for Applications (VBA) example configures the current TableView object so that in-cell editing is allowed and the new item row is displayed in the view.

Private Sub ConfigureEditableView() 
 
 Dim objTableView As TableView 
 
 
 
 If Application.ActiveExplorer.CurrentView.ViewType = _ 
 
 olTableView Then 
 
 
 
 ' Obtain a TableView object reference for the 
 
 ' current table view. 
 
 Set objTableView = _ 
 
 Application.ActiveExplorer.CurrentView 
 
 
 
 With objTableView 
 
 ' ShowNewItemRow is ignored if 
 
 ' AllowInCellEditing is set to 
 
 ' False. 
 
 .AllowInCellEditing = True 
 
 
 
 ' Display the new item row in 
 
 ' the table view. 
 
 .ShowNewItemRow = True 
 
 
 
 ' Save the table view. 
 
 .Save 
 
 End With 
 
 End If 
 
End Sub 
 

See Also

Concepts

TableView Object Members

TableView Object