0
有誰知道如何在Excel中使用「My.Computer.Clipboard」對象。我已經嘗試了幾乎所有的參考,通過工具 - >參考。我想用這樣的代碼Excel中的「My.Computer.Clipboard」對象
If My.Computer.Clipboard.ContainsImage() Then
Dim grabpicture As System.Drawing.Image
grabpicture = My.Computer.Clipboard.GetImage()
picturebox1.Image = grabpicture
End If
感謝
您似乎正在查看vb.net代碼,但您可能希望查看MSForms.DataObjects以使其在Excel中工作 - 請嘗試http://excel-macro.tutorialhorizon.com/vba-excel-putting-文本在Windows剪貼板/ – jamheadart
謝謝@jamheadart –