Dynamic Row Selection

  • Thread starter Thread starter Bruce B
  • Start date Start date
B

Bruce B

I'm trying to select rows based on a parameter passed to the sub
procedure that selects the row.

I know if I want a set row then I could do:

Rows(6:6).Select

However, let's say I have a parameter r that contains the row number I
want to select.

I tried:

Rows(r.Value + ":" + r.Value).Select

However, this just gives me an error.

Any help would be appreciated.

Thanks!

- Bruce
 
The variable was an integer.

I think the first two replies should work.

Thanks for the help!

- Bruce
 
Back
Top