我需要根據它的值找到一個單元格。然后我需要從選定的單元格中提取一列的值,并在我的回圈中使用它進行迭代。當我嘗試使用 .address 時,它給了我一個錯誤
Set selectedCell = Worksheets("Sheet1").Rows(3).Find("Start", LookIn:=xlValues)
selectedCell.select
Selection.Address
While Not IsEmpty(Cells(3, EXTRACTED COLUMN VALUE HERE))
uj5u.com熱心網友回復:
selectedCell 知道它的列 - 無需選擇它。像這樣:
Set selectedCell = Worksheets("Sheet1").Rows(3).Find("Start", LookIn:=xlValues)
While Not IsEmpty(Cells(3, selectedCell.Column))
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/317087.html
下一篇:如何等待多個嵌套的承諾解決?
