1. 打开excle, sheet1右键单击>查看代码>插入>模块
输入代码
Sub CopyText()
'Updated by NirmalDim xAutoWrapper As ObjectSet xAutoWrapper = New DataObject 'or GetObject("New:{1C3B4210-F441-11CE-B9EA-00AA006B1A69}")xAutoWrapper.SetText ActiveCell.TextxAutoWrapper.PutInClipboard
End Sub