ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   know row index via Cell (https://www.excelbanter.com/excel-programming/381640-know-row-index-via-cell.html)

--== Alain ==--

know row index via Cell
 
Hi,

i have the following code :

For Each cell In ThisWorkbook.Worksheets("Programs").Range("C2:C" &
(MaxRecords + 1))

....
// detect row_number
....

Next cell

how can i get the row index (or number of the row) via "cell" ?

thx,
Al.

Don Guillett

know row index via Cell
 
myrow=cell.row
or
msgbox cell.row

--
Don Guillett
SalesAid Software

"--== Alain ==--" wrote in message
...
Hi,

i have the following code :

For Each cell In ThisWorkbook.Worksheets("Programs").Range("C2:C" &
(MaxRecords + 1))

...
// detect row_number
...

Next cell

how can i get the row index (or number of the row) via "cell" ?

thx,
Al.





All times are GMT +1. The time now is 02:27 PM.

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