irisqueiroz
Member
Please,
I'm tryng to write a dynamic code.
I just know how to write it in R1C1 mode, but I'd like to write it as A1 mode.
Range("B10").Select
Selection.FormulaArray = "=MMULT(MMULT(R7C2:R7C" & nAtivos + 1 & ",Matriz!R2C2:R" & nAtivos + 1 & "C" & nAtivos + 1 & "),TRANSPOSE(R7C2:R7C" & nAtivos + 1 & ")"
but its not working I dont know why...
The code is suposed to be:
"=MMULT(MMULT(Range(cells(2,2),cells(2,nAtivos+1)),Matriz!Range(cells(2,2),cells(nAtivos+1,nAtivos+1))),TRANSPOSE(Range(cells(2,2),cells(2,nAtivos+1)))
Thnaks!
I'm tryng to write a dynamic code.
I just know how to write it in R1C1 mode, but I'd like to write it as A1 mode.
Range("B10").Select
Selection.FormulaArray = "=MMULT(MMULT(R7C2:R7C" & nAtivos + 1 & ",Matriz!R2C2:R" & nAtivos + 1 & "C" & nAtivos + 1 & "),TRANSPOSE(R7C2:R7C" & nAtivos + 1 & ")"
but its not working I dont know why...
The code is suposed to be:
"=MMULT(MMULT(Range(cells(2,2),cells(2,nAtivos+1)),Matriz!Range(cells(2,2),cells(nAtivos+1,nAtivos+1))),TRANSPOSE(Range(cells(2,2),cells(2,nAtivos+1)))
Thnaks!