Simply silly question

  • Thread starter Thread starter paul
  • Start date Start date
P

paul

Embarassingly, I don't know how the get the current row
number in VB :-(

Paul
 
Also works if you set the variable up as a Integer, which you can use to do
counts and such with.
 
Thank you, John! I know I'll need that in the future as I get more involved
in this.

Ed
 
Just a point but the return from "ActiveCell.Row" is an Integer
 
Well. no it isn't an integer when the row number exceeds 32 thousand
something---I think it is about 32760 or so.
Set it to single if you exceed the 32k limit

Dave
 
Said slightly differently, the Integer variable type and the Long
variable type each refer to integers; the range of the Integer type is
-32768 to 32767; the range of the Long type is -2,147,483,648 to
2,147,483,647. Single and Double variable types can include both
integers and non-integers.

Row numbers are always integers; but if the row number is larger than
32,767, it can't be assigned to an Integer type variable, but can be
assigned to a Long Type variable.

Alan Beban
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top