A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Thank you!!!!!!
When I looked at yours, and retried mine, what made the difference was this.
When I set up my matrix I used
ReDim A(2,2)
That was the problem
When I changed that to
ReDim A(0 to 1, 0 to 1)
it worked.
I had loaded the array as
A(0,0) = 1
A(1,0) = 2
A(0,1) = 3
A(1,1) = 4
Also when I use
ReDim A(1 to 2, 1 to 2)
A(1,1) = 1
A(2,1) = 2
A(1,2) = 3
A(2,2) = 4
Which is is the same as yours, it also works.
So the problem was in the way I Redim'ed the array.
Thanks very much