![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 76
|
This function displays #value if the matrix dimension is greater than 73*73! It works fine otherwise
Any pointers on why I am having problems would be great. Thanks, Karraj Function fullmatrix(matrix) As Variant Set therange = matrix nrows = matrix.Rows.Count ReDim matrix(1 To nrows, 1 To nrows) As Double Dim outp1() As Double ReDim outp1(1 To nrows, 1 To nrows) For i = 1 To nrows For j = 1 To i outp1(i, j) = therange.Cells(i, j) Next Next For j = 1 To nrows For i = j + 1 To nrows outp1(j, i) = outp1(i, j) Next Next |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Portland, OR USA
Posts: 1,374
|
I think maybe you forgot the end of the function?
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Posts: 76
|
I forgot to cut/copy paste the endfunction. My code has it.
Karraj |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Portland, OR USA
Posts: 1,374
|
What exactly are you trying to accomplish with this? You don't set anything to fullmatrix...
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|