Relative Ranges - Multiple Cells

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to select a range of cells from column A - column L, but
everytime I run the loop the starting row reference and the number of rows
will be different.

I've worked out a solution, but it will only work if I can get a relative
range to select multiple cells... something like this:

Range("A" & myMarks(k)).Activate
ActiveCell.Offset(0,0:Group, 11).Select

But it doesn't work... is there anything that will do the same job?
 
Range("A" & myMarks(k)).Activate
ActiveCell.Resize(Group, 11).Select

assuming that group is the number of rows you want to select

or

Cells(MyMarks(k),"A").Resize(group,11).Select
 

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