如果能显示“粘贴选项”按钮,则该值为 True。Boolean 类型,可读写。
expression.DisplayPasteOptions
expression 必需。该表达式返回“应用于”列表中的对象之一。
这是一个 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