I'm using VBA to introduce formulas in my local database regarding some conditions. Here is an example of the code I'm using:
Range("CP" & l).Formula = "=IFERROR(((T" & l & "*6)-SUM(U" & l & ":Z" & l & "))/(T" & l & "*6);"""")"
Were "l" is my first blank row (it's working)
The formula is working very well, but the problem I have is that the code is returning only the value of the result in my cell, but I would like to see the whole formula in my cell.
Is it something that can be possible to do ?
* The real problem is that the formula IS NOT in the formula bar. The Code write the score, but not the formula. If I do a test with
Range("CP" & l).Formula = "=((T" & l & "*6)-SUM(U" & l & ":Z" & l & "))/(T" & l & "*6)"
I see the formula in the formula bar.
I really don't understand...
Thanks :)
Marie