jakeman
Active Member
- Joined
- Apr 29, 2008
- Messages
- 325
- Office Version
- 365
- Platform
- Windows
Hey, guys - I have a line of VBA that's giving me trouble and I'm not sure how to solve for it.
I have several lines of code that create formulas for me inside of my table and they all work fine. When I tried to do the same using an array formula, I get an error: "Run-time error 1004: Unable to set the FormulaArray property of the Range class."
The formula that is erroring out is:
Here is an an example of a formula that works just fine:
My guess is it's got something to do with how the syntax for the Array is to be setup?
I have several lines of code that create formulas for me inside of my table and they all work fine. When I tried to do the same using an array formula, I get an error: "Run-time error 1004: Unable to set the FormulaArray property of the Range class."
The formula that is erroring out is:
Code:
Range("Player_Matchup_tbl[TSFPP]").FormulaArray = "=IF(MAX(IF([POS]=[@POS],[SFP]))=[@SFP],""Top Player"","""")"
Here is an an example of a formula that works just fine:
Code:
Range("Player_Matchup_tbl[AFP]").FormulaR1C1 = "=INDEX(Roster_tbl[FPPG],MATCH([@Player],Roster_tbl[BBall Ref Alias],0))"
My guess is it's got something to do with how the syntax for the Array is to be setup?