ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   find row index (https://www.excelbanter.com/excel-programming/298048-find-row-index.html)

crew3407[_14_]

find row index
 
Hello,

Quick question, I was just wondering how you find the row index of
cell that i found using find and then storing that into a variable.
need to reference information in that row. Thank

--
Message posted from http://www.ExcelForum.com


Stephan Kassanke

find row index
 

"crew3407 " schrieb im Newsbeitrag
...
Hello,

Quick question, I was just wondering how you find the row index of a
cell that i found using find and then storing that into a variable. I
need to reference information in that row. Thanks


---
Message posted from http://www.ExcelForum.com/


the find method results in a range object.

set myresult = .find(.....)

You can assign myresult.row then to your variable.

cheers,
Stephan



Bernie Deitrick

find row index
 
Crew,

Try something like

Dim myRow As Long
Dim myCell As Range

Set myCell = Cells.Find(.......)
If Not MyCell Is Nothing Then
myRow = myCell.Row
End If

Then myRow can be used like

Cells(myRow,3).Value = "This is entered into column C"

HTH,
Bernie
MS Excel MVP

"crew3407 " wrote in message
...
Hello,

Quick question, I was just wondering how you find the row index of a
cell that i found using find and then storing that into a variable. I
need to reference information in that row. Thanks


---
Message posted from http://www.ExcelForum.com/




Bob Phillips[_6_]

find row index
 

Activecell.Row

or

Range(myvar).Row

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"crew3407 " wrote in message
...
Hello,

Quick question, I was just wondering how you find the row index of a
cell that i found using find and then storing that into a variable. I
need to reference information in that row. Thanks


---
Message posted from http://www.ExcelForum.com/




crew3407[_15_]

find row index
 
thanks guys, appreciate i

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 10:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com