MMULT in VBA
If anyone else comes across this situation, here is the code I finally got to
work:
Sub mmult()
Set r1 = ActiveCell.Offset(0, -8)
Set r8 = ActiveCell.Offset(0, -1)
Set c1 = ActiveCell.Offset(-8, -9)
Set c8 = ActiveCell.Offset(-1, -9)
ActiveCell = "=MMult(" & r1.Address & ":" & r8.Address & "," & c1.Address &
":" & c8.Address & ")"
End Sub
Jim
--
Best wishes,
Jim
"Jim Jackson" wrote:
I am having a whale of a time figuring out how to convert the MMULT formula
into VBA. I can do it specifying Ranges but need the code to allow for
activecell.offset values since I have a number of rows that require an MMULT
result.
Is there a way?
Thanks for any help anyone can give.
--
Best wishes,
Jim
|