Declamatory
Active Member
- Joined
- Nov 6, 2014
- Messages
- 319
Hi Folks,
I have the following formula in VBA which is getting a run time error I think because the formula exceeds 255 characters. I understand there is a way of breaking up the formula and was wondering if anybody would be able to break up the following so it could run in VBA.
Thanks
I have the following formula in VBA which is getting a run time error I think because the formula exceeds 255 characters. I understand there is a way of breaking up the formula and was wondering if anybody would be able to break up the following so it could run in VBA.
Thanks
Code:
Range("B17").Select
Selection.FormulaArray = _
"=IF(SUM(COUNTIFS(Dealing!C[2],{""A800F"",""C800F""},Dealing!C[21],""Fund Switch Purchase""))>0,""Estimate"",IF(OR(SUMIF(Dealing!C[2],""A800F"",Dealing!C[5])<>0,SUMIF(Dealing!C[2],""C800F"",Dealing!C[5])<>0),""Estimate"",IF(ABS(R[-3]C+R[-3]C[3])=0,""No dealing for ""&TEXT(R[-6]C[-1],""dd/mm/yyyy""),""Confirmed"")))"