jayakrishnangounder
New Member
- Joined
- Feb 12, 2020
- Messages
- 2
- Office Version
- 365
- 2019
- 2016
- 2013
- 2011
- Platform
- Windows
I have a jagged array containing normal values and formulas in R1C1 notation and I want to write it into excel.
I used following code for the same
But it produced unexpected results in case of column anchored formulas like '=$A1'.
I got it fixed by rewriting the code:
But I am not sure whether it's a perfect solution for my situation.
Thanks.
I used following code for the same
VBA Code:
dataRange.Value2 = jaggedArray;
But it produced unexpected results in case of column anchored formulas like '=$A1'.
I got it fixed by rewriting the code:
VBA Code:
dataRange.FormulaR1C1 = jaggedArray;
But I am not sure whether it's a perfect solution for my situation.
Thanks.