Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default filling an aray without looping

Is it possible to simply fill it by using an array formula without
looping
to fill it in the same way as you can fill a range with an array such
as:

Range("C1:E20).FormulaArray =
Application.WorksheetFunction.MMult(InvVCVRange, AlphaRange)


By (after rediming it) saying: Array (3,20) =
Application.WorksheetFunction.MMult(Range1, Range2)

Thks, Mark

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default filling an aray without looping

You can assign the result of MMult to a variant:

Dim vArray As Variant
Dim i As Long
Dim j As Long

vArray = Application.MMult(Range("A1:A10"), Range("B1:K1"))

For i = 1 To UBound(vArray, 1)
For j = 1 To UBound(vArray, 2)
Debug.Print "vArray(" & i & "," & j & "): " & vArray(i, j)
Next j
Next i



In article .com,
wrote:

Is it possible to simply fill it by using an array formula without
looping
to fill it in the same way as you can fill a range with an array such
as:

Range("C1:E20).FormulaArray =
Application.WorksheetFunction.MMult(InvVCVRange, AlphaRange)


By (after rediming it) saying: Array (3,20) =
Application.WorksheetFunction.MMult(Range1, Range2)

Thks, Mark

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
Counting contents in aray jpreman Excel Discussion (Misc queries) 7 October 16th 08 02:11 PM
VLOOKUP Question - Can I Keep the Same Aray with Drag? CJ Excel Worksheet Functions 4 July 22nd 08 08:41 PM
Passing a string aray as an argument to a function ?....Help! Dan Thompson Excel Programming 5 September 29th 04 03:01 AM
Looping and Filling Info April Excel Programming 6 February 18th 04 02:59 PM
Named Aray Formula Francois Benadie Excel Programming 2 December 4th 03 07:16 AM


All times are GMT +1. The time now is 05:41 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"