(Excel) 的 Application.DisplayPasteOptions 屬性

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

語法

運算式DisplayPasteOptions

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 支援與意見反應