Excel Vba Cellsfind Row Number. Sometimes, we need to get a row number of the current active cell. How do I get Excel to tell me the row number of the active cell? (I know there's got to be a simple VBA function.) I'm looping through rows testing for a blank, and when I find the upper bound and the lower bound of a group of rows (which are separated by blank.
Sometimes, we need to get a row number of the current active cell.
And if you want to automate your work in Excel using VBA, you need to know how to work with cells and ranges Here is the code that will loop through the rows in the selected cells and highlight alternate rows.
Function FR(Start As Range) As Long. There is no need to loop to find I've always had good luck with this approach. Getting a row number is easy—just find the cell you're interested in, click on it, and look at the highlighted row number You need to provide the range argument, which tells Excel where to count rows.








