VBA - Dynamic array

Joined
Jul 8, 2010
Messages
1
Reaction score
0
Hi,

I would like to know if is possible to select the whole data set i.e. like below as the size of the data set might change and then set it as an array?

activesheet.Range("a1", _
activesheet.Range("a1").End(xlDown).End(xlToRight))

Also, once the array is set, is it possible to return a value from a certain cell to the activecell?

i.e. activecell is P1 but i want the cell value to be = to a1? Thanks.
 

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

Top