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
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
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.