need help selecting a range in a macro

  • Thread starter Thread starter Aaron Russell
  • Start date Start date
A

Aaron Russell

Hello Everyone. I need some help selecting a range. In my macro i'm trying
to select a range.. for example.....
Range("A2:A40").Select...... My question is how can i replace the A40 with a
value that's in another cell. For example I have the value of 82 in cell
F2. So I want to say Range("A2:A82").Select. Can this be done. Thanks.

Aaron
 
Aaron said:
Hello Everyone. I need some help selecting a range. In my macro i'm trying
to select a range.. for example.....
Range("A2:A40").Select...... My question is how can i replace the A40 with a
value that's in another cell. For example I have the value of 82 in cell
F2. So I want to say Range("A2:A82").Select. Can this be done. Thanks.

Aaron
Range("a2:a" & Range("f2").Value).Select

Alan Beban
 
Back
Top