Vba To Clipboard

[Solved] Vba To Clipboard | Vb - Code Explorer | yomemimo.com
Question : vba to clipboard

Answered by : energetic-echidna-7ac05ckpblrh

Function Clipboard(Optional StoreText As String) As String
'PURPOSE: Read/Write to Clipboard
'Source: ExcelHero.com (Daniel Ferry)
Dim x As Variant
'Store as variant for 64-bit VBA support x = StoreText
'Create HTMLFile Object With CreateObject("htmlfile") With .parentWindow.clipboardData Select Case True Case Len(StoreText) 'Write to the clipboard .setData "text", x Case Else 'Read from the clipboard (no variable passed through) Clipboard = .GetData("text") End Select End With End With
End Function

Source : | Last Update : Tue, 10 May 22

Answers related to vba to clipboard

Code Explorer Popular Question For Vb