declaring an array (i think)

  • Thread starter Thread starter Cindy
  • Start date Start date
C

Cindy

I am really new to this, so any help will be appreciated.

I am trying to copy a group of cells. I figured out how
to copy a range that does not change but I need to know
how to copy one that changes based on the data that is in
the worksheet. I created a cell, say a1, that will
change from say a2:j7 to a2:j8 depending on what the user
inputs.

Is there a way to select the group of cells based on what
is in cell a1?

Thanks for your help.
 
Hi Cindy
not quite sure but try
sub foo()
dim rng as range
set rng = range(range("A1").value)
rng.copy
.....
end sub
 
Frank, Thank you so much that worked perfectly.

-----Original Message-----
Hi Cindy
not quite sure but try
sub foo()
dim rng as range
set rng = range(range("A1").value)
rng.copy
.....
end sub

--
Regards
Frank Kabel
Frankfurt, Germany

.
 

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