LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default Assembling large "array"

Just to add some food for thought...

The array could have been loaded like this...

PricesA_D = Sheets("A-D").UsedRange

... and its dims could have been retrieved like this...

Debug.Print UBound(PricesA_D) & vbTab & UBound(PricesA_D, 2)

-OR-

With Sheets("A_D").UsedRange
Debug.Print .Rows.Count & vbTab & .Columns.Count
End With

To access the data in code you can do something like this...

Dim i&, j& 'as Long
For i = LBound(PricesA_D) To UBound(PricesA_D)
For j = LBound(PricesA_D, 2) To UBound(PricesA_D, 2)
'process each element in Dim2 for each element in Dim1
PricesA_D(i, j) = PricesA_D(i, j)
Next 'j
Next 'i

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


 
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
Help using the LARGE function "WITHOUT" using an array exceluser Excel Worksheet Functions 6 June 5th 10 11:17 PM
Using the functions "LARGE"and "SMALL" in an Excel program Ed[_30_] Excel Programming 0 March 18th 08 05:14 PM
Listbox header inside VBA (Array("Head1", "Head2", ...) Alex St-Pierre Excel Programming 2 October 25th 06 09:28 PM
If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ... Maria J-son[_2_] Excel Programming 2 March 5th 06 12:20 PM
Utility to "clean up" or "defrag" large Excel file Sabrina Excel Discussion (Misc queries) 3 January 12th 06 09:57 PM


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

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

About Us

"It's about Microsoft Excel"