So I have a column of data (player names) that I pasted from another Excel file. Cell A2
has the first player name and then there are several blank rows (the number of blank rows isn't the same for every roster sheet), and I am trying to determine the row number of the next non-empty cell with:
nextPlayerRow = rosterSh.Columns("A").Find(What = "*", after:=rosterSh.Range("A2"), LookIn:=xlValues).row
where nextPlayerRow
is declared as an Integer
. This, however, returns a Runtime Error 91.
What am I doing wrong?