Arie Bos
Board Regular
- Joined
- Mar 25, 2016
- Messages
- 224
- Office Version
- 365
- Platform
- Windows
I want to enter the following formula's in two cells:
the result in D61 is =SUM('D58':'D60') and returns a #NAME ? error. How to avoid the apostrophs around the range reference?
the second one returns an 1004 error: "Application defined or object defined error", but I do not see why.
Any help is greatly appreciated.
Arie
Code:
Range("D61").Select
ActiveCell.FormulaR1C1 = "=SUM(D58:D60)"
Range("D63").Select
ActiveCell.FormulaR1C1 = "=COUNTIF(IG_TxnHist[ProfitAndLoss];"">0"")-1"
the result in D61 is =SUM('D58':'D60') and returns a #NAME ? error. How to avoid the apostrophs around the range reference?
the second one returns an 1004 error: "Application defined or object defined error", but I do not see why.
Any help is greatly appreciated.
Arie