0
我遇到一些麻烦我的代码另一个范围:Excel的VBA复制到使用细胞
Worksheets("Week 1").Range(Cells(4, ColNo), Cells(5, ColNo)).Value = Worksheets("Count").Range(Cells(4, 2), Cells(5, 2)).Value
如果我将其更改为
Worksheets("Week 1").Range(Cells(4, ColNo), Cells(5, ColNo)).Value = Worksheets("Count").Range("B4:B5").Value
它工作正常,谁能帮助?
'Cells'不是完全限定之后加入。地址所以它指的是当前活动片' – Slai
[ '1周' A4:!A5] .Columns( ColNo)= [Count!B4:B5]' – Slai
感谢Robin,在单元函数工作后添加.address。 – Cr1kk0