0
我必须改变下面的代码这样的要求:获取单元格值
现在:
'in a loop with a being rownumber
CurrInvoiceNum = ws2.Range("B" & a).Value
要求:
' Transaction ID is the column name of B and the reason for the change is that it need not always be in B.
CurrInvoiceNum = ws2.Range("Transaction ID" & a).Value
我试图让像这样的单元格:
Cells.Find(What:="Transaction ID", LookAt:=xlWhole).Column)
但不能让它使用ROWNUMBER的..
感谢,