set rng=

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

Guest

hi guys
dim rng() as range
redim rng(1)
with active sheet
..cells(1,n).activate
for n= 1 to activesheet.rows.count
redim preserve rng(n)
rng(n) = .cells(1,n)
set rng(n)=activecell.entirecolumn
next n
will this work?
 
dim rng() as range
redim rng(1 to activesheet.rows.count)
with active sheet
for n= 1 to activesheet.rows.count

set rng(n)=.Cells(n,1)

next n
End with
 
hi tom
is every element in an array a range object?
will i be able to use all ranges to manipulate the date containing these
ranges?
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

Back
Top