View Single Post
 
Old 01-25-2025, 01:48 PM
p45cal's Avatar
p45cal p45cal is online now Windows 10 Office 2021
Expert
 
Join Date: Apr 2014
Posts: 947
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

Code:
Sub blah()
With ThisWorkbook.Worksheets(1).Columns(1)       'any single column range, eg. Range("B3:B100")
  x = .Value
  FirstRow = .Row
  For rw = 1 To UBound(x)
    If x(rw, 1) = "Pears" Then Debug.Print rw + FirstRow - 1
  Next rw
End With
End Sub
Reply With Quote