Name

Application.DisplayClipboardWindow [= setting]

Synopsis

True displays the Clipboard window; False hides it. For example, the following code copies a chart and displays the Clipboard window:

Sub TestClipBoardWindow(  )
    Dim chrt As Chart
    ' Copy a Chart image into the Clipboard.
    Set chrt = Charts(1)
    chrt.CopyPicture xlScreen, xlBitmap
    Application.DisplayClipboardWindow = True
End Sub

Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.