Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to read Data from spreadsheet to VBA?

Status
Not open for further replies.

gbam

Civil/Environmental
Joined
Jan 20, 2003
Messages
880
Location
US
Quick question-
Is it possible to enter data, array format, in a spreadsheet then read it into VBA to perform computations?
 
It is done in Excel ALL the time.
 
gbam,
The quickest way to read spreadsheet array:

dim vtArray
vtArray = range("A1:B25")

vtArray becomes a two-dimensional array.

good luck!
 
Thank You!
I will give it a try.
 
if its a function then you can also transfer the array when calling the function.

Best regards

Morten
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top