Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help using the LARGE function "WITHOUT" using an array | Excel Worksheet Functions | |||
Using the functions "LARGE"and "SMALL" in an Excel program | Excel Programming | |||
Listbox header inside VBA (Array("Head1", "Head2", ...) | Excel Programming | |||
If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ... | Excel Programming | |||
Utility to "clean up" or "defrag" large Excel file | Excel Discussion (Misc queries) |