-1
A
回答
0
如果只知道工作表的名稱,或者只有工作表的索引是固定的,則可以使用 Sheet("Sheetname").Cells(rownumber, columnnumber)
訪問任何工作表的任何單元或Sheet(index).Cells(rownumber,columnumber)
。 要複製的價值,你可以只寫Sheet(index1).Cells(rownumber1, columnnumber1)=Sheet(index2).Cells(rownumber2, columnnumber2)
您可以通過Rows("startIndex:endIndex").Select
通過
Rows(index).Select
或多行選擇一整排,以及能否請您更清楚一點。也請分享您迄今嘗試過的任何代碼片段。 – Siva您可以添加一個輸入和期望輸出的例子嗎? – Fabich
有一張工作表包含生命期數據,工作表中的一列是日期列。根據此專欄,我們必須複製其他工作表中的匹配行。 – Tanmoy