Outlook) (TableView.ShowNewItemRow 屬性

會傳回或設定 Boolean 值,決定是否在 TableView 物件中顯示新項目列。 可讀寫的。

語法

expression。 ShowNewItemRow

運算式 代表 TableView 物件的變數。

註解

只有在 AllowInCellEditing 屬性設為 True 時,才適用此屬性的值。

範例

下列 Visual Basic for Applications (VBA) 範例會設定目前的 TableView 物件,使其允許欄位內編輯並於檢視中顯示新項目列。

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

另請參閱

TableView 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。