VBA Array Transfer

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

Guest

Hi Everyone

I am developing code which requires to transfer a range of cell values into a VBA Array. if there is any limitation on doing this

Thanks
 
JAY said:
Hi Everyone,

I am developing code which requires to transfer a range of cell values into a VBA Array. if there is any limitation on doing this.

Thanks
What version of Excel are you using?

Alan Beban
 
Dim arr As Variant
arr = Sheets("whatever").Range("whateverelse")

will work for up to 5461 values. If you might need more, or if your
array can not be held in a Variant variable, post back.

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