ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Arrays (https://www.excelbanter.com/excel-programming/331145-arrays.html)

Dani

Arrays
 

Is there a way to open up another excel file, and read in some values
and store them in an array to be used in a curren file???

Any help would be greatly appreciated


Dani


--
Dani
------------------------------------------------------------------------
Dani's Profile: http://www.excelforum.com/member.php...o&userid=23542
View this thread: http://www.excelforum.com/showthread...hreadid=377096


Tom Ogilvy

Arrays
 
Dim v as Variant
Dim bk as Workbook
set bk = Workbooks.Open("c:\test.xls")
v = bk.Worksheets(1).Range("A1").CurrentRegion
bk.Close Savechanges:=False

now v is a two dimensional array holding the values from sheet1 of
c:\test.xls

--
Regards,
Tom Ogilvy

"Dani" wrote in message
...

Is there a way to open up another excel file, and read in some values
and store them in an array to be used in a curren file???

Any help would be greatly appreciated


Dani


--
Dani
------------------------------------------------------------------------
Dani's Profile:

http://www.excelforum.com/member.php...o&userid=23542
View this thread: http://www.excelforum.com/showthread...hreadid=377096





All times are GMT +1. The time now is 03:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com