如何粘贴“测试”所在的复制值

时间:2015-05-27 07:43:07

标签: vb.net excel

oExcel.Worksheets("spring").Columns("A").Copy()
oExcel.Worksheets("spring").Columns("B").Copy()

Dim LastRow As Long

LastRow = oSheet.Range("A4000").End(Excel.XlDirection.xlUp).Row + 1
oSheet.Range("A" & LastRow).Value = "Test"
oSheet.Range("B" & LastRow).Value = "Test"

我试过了:

oSheet.Range("B" & LastRow).Value = oExcel.Worksheets("spring").Columns("B").PasteSpecial()

这不起作用

1 个答案:

答案 0 :(得分:0)

oSheet.Range("B" & LastRow).PasteSpecial()