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
 

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