Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在上图中找到带有“Section B”的单元格的位置为(BX)?
下面将显示 B 部分地址的消息框。
Sub FindSectionB() Dim TargetRng As String TargetRng = ActiveSheet.Columns(2).Find(What:="Section B").Address MsgBox TargetRng End Sub
更新:如果只需要行,请更改
.Find(What:="Section B").Address
对此:
.Find(What:="Section B").Row