共用方式為


Application.DisplayPasteOptions 屬性 (Excel)

如果可以顯示 [貼上選項] 按鈕,則為 True。 可讀寫的 Boolean

語法

表達。顯示貼上選項

expression 代表 Application 物件的變數。

註解

這是 Microsoft Office 範圍的設定。 此設定會影響所有其他 Microsoft Office 應用程式。 將 DisplayPasteOptions 屬性設定為 True 會關閉 Microsoft Excel 中的 [ 自動填入選項 ] 按鈕。 自動 填充選項按鈕 僅在 Excel 中,但 粘貼選項 按鈕在所有其他 Microsoft Office 應用程序中。

範例

在此範例中,Microsoft Excel 會通知使用者顯示「 貼上選項」 按鈕的狀態。

Sub CheckDisplayFeature() 
 
 ' Check if the options button can be displayed. 
 If Application.DisplayPasteOptions = True Then 
 MsgBox "The ability to display the Paste Options button is on." 
 Else 
 MsgBox "The ability to display the Paste Options button is off." 
 End If 
 
End Sub

支援和意見反應

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