#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Avg Arrays PAL Excel Worksheet Functions 2 February 13th 09 06:02 PM
Arrays Dan Excel Worksheet Functions 3 September 15th 05 07:36 AM
arrays Tajin Excel Programming 1 June 21st 04 03:02 PM
Arrays Lacy Excel Programming 3 June 8th 04 07:15 PM
Arrays Zootrot Excel Programming 1 June 4th 04 11:47 AM


All times are GMT +1. The time now is 11:46 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"