DisplayClipboardWindow 属性 (Excel)Application.DisplayClipboardWindow property (Excel)

如果能显示 Microsoft Office 剪贴板,则返回 TrueReturns True if the Microsoft Office Clipboard can be displayed. 读/写 BooleanRead/write Boolean.

语法Syntax

表达式DisplayClipboardWindowexpression.DisplayClipboardWindow

expression:表示 Application 对象的变量。expression A variable that represents an Application object.

示例Example

在此示例中, Microsoft Excel 确定是否可以显示 Office 剪贴板, 并通知用户。In this example, Microsoft Excel determines if the Office Clipboard can be displayed, and notifies the user.

Sub SeeClipboard() 
 
 ' Determine if Office Clipboard can be displayed. 
 If Application.DisplayClipboardWindow = True Then 
 MsgBox "Office Clipboard can be displayed." 
 Else 
 MsgBox "Office Clipboard cannot be displayed." 
 End If 
 
End Sub

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.