【发布时间】:2013-10-24 17:50:18
【问题描述】:
我有两个范围如下
Dim onedl, twodl As Range
Dim lastrow as long
Set oned1 = xl.ThisWorkbook.Sheets(1).Range("C5:C" & lastrow)
Set twod1 = xl.ThisWorkbook.Sheets(1).Range("F5:F" & lastrow)
lastrow = xl.ThisWorkbook.Sheets(1).Cells(Rows.Count, 2).End(xlUp).Row
我可以从 Range("I5:I" & lastrow) 中减去这两个范围并计算值吗,类似于 (twod1 - oned1) 来填充。
【问题讨论】:
标签: vba excel range subtraction