James_Latimer
Active Member
- Joined
- Jan 20, 2009
- Messages
- 415
Excel 2016
I was hoping someone could give me some pointers please, i'm having some issues with the following and can't quite understand why.
I have the following code
I then get the following error 'Run-time error 1004: Unable to get the MMult property of the WorksheetFunction Class'
If i do the same thing on the front end of Excel (using the same ranges) then it works fine. Can someone throw me a fricking bone here please?
Thank you kind Excelers.
I was hoping someone could give me some pointers please, i'm having some issues with the following and can't quite understand why.
I have the following code
Code:
Dim var1 as Variant, var2 as Variant
var1 = Sheets("Sheet1").Range("R16:AC16")
var2 = Sheets("Sheet2").Range("P4:P15")
MsgBox (Application.WorksheetFunction.MMult(var1, var2))
I then get the following error 'Run-time error 1004: Unable to get the MMult property of the WorksheetFunction Class'
If i do the same thing on the front end of Excel (using the same ranges) then it works fine. Can someone throw me a fricking bone here please?
Thank you kind Excelers.