You can use below code to paste data from clipboard.
Sub PasteFromClipboard(b As Boolean)
Dim clipboard As MSForms.DataObject
Dim str1 As String
Set clipboard = New MSForms.DataObject
clipboard.GetFromClipboard
str1 = clipboard.GetText
End Sub
Sub PasteFromClipboard(b As Boolean)
Dim clipboard As MSForms.DataObject
Dim str1 As String
Set clipboard = New MSForms.DataObject
clipboard.GetFromClipboard
str1 = clipboard.GetText
End Sub
No comments:
Post a Comment