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的..
感謝,