Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Pedro Silva   on Oct 18 In MS Office Category.

  
Question Answered By: Burkett Bernard   on Oct 18

You can't copy it into a defined array  item, but if you say:

Dim vData as Variant
vData = ActiveSheet.Range(Cells(1, 1), Cells(10000, 1))

...VBA will create vData as an array like:

vData(1 to 10000, 1 to 1) as Variant

...and if you later say:

vData = ActiveSheet.Range(Cells(1, 1), Cells(10, 1))

...VBA will automatically redimension it as:

vData(1 to 10, 1 to 1) as Variant

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Copying whole array in a column in single command Or get search suggestion and latest updates.


Tagged: