Private Sub CommandButton1_Click()
Dim oRange As Range
Dim oCht As Chart
Set oRange = Range("A1:C3")
Set oCht = Charts.Add
oRange.CopyPicture xlScreen, xlPicture
oCht.Paste
oCht.ChartArea.Fill = clipboard ' <- 我只想把Chart的區域指定來源是ClipBoard,一直試不出來。請高手幫忙了。
End Sub作者: loquat 時間: 2013-2-21 10:23
Sub Test()
Dim MyData As DataObject, MyStr As String
Set MyData = New DataObject
MyData.GetFromClipboard '获得剪切板内容
MyStr = MyData.GetText '赋值给变量
MsgBox MyStr
End Sub
複製代碼
You would be happy to see this link
http://bbs.csdn.net/topics/10334313作者: loquat 時間: 2013-2-21 13:38