|
Dim text As String
Dim oData As DataObject
Dim IntLine As Integer
Set oData = New DataObject
oData.SetText ""
oData.PutInClipboard
ActiveCell.Activate
text = ActiveCell.Value
oData.SetText text
oData.PutInClipboard
SendKeys "^a", True
SendKeys "{DEL}", True
SendKeys "^v", True
SendKeys "{TAB}", True
SendKeys "{TAB}", True
ActiveCell.Offset(1, 0).Activate
text = ActiveCell.Value
oData.SetText text
oData.PutInClipboard
SendKeys "^a", True
SendKeys "{DEL}", True
SendKeys "^v", True
SendKeys "{TAB}", True
ActiveCell.Offset(0, 1).Activate
text = ActiveCell.Value
oData.SetText text
oData.PutInClipboard
SendKeys "^a", True
SendKeys "{DEL}", True
SendKeys "^v", True
'SendKeys "{ENTER}", True
SendKeys "{TAB}", True
ActiveCell.Offset(0, 1).Activate
text = ActiveCell.Value
oData.SetText text
oData.PutInClipboard
SendKeys "^a", True
SendKeys "{DEL}", True
SendKeys "^v", True
'SendKeys "{ENTER}", True
SendKeys "{TAB}", True
oData.Clear
Set oData = Nothing
End Sub
|
|