O
ob3ron02
Hi I've got a macro designed to fill cells with formulas when executed.
The results are sometimes incorrect but when writing the exact same
formula manually, the results are correct.
For example one of the formulas that I'm using is
Code:
--------------------
Dim ReportD As String
ReportD = "=IF(ISNA(MATCH(R[0]C[-2],PID!B:B,0))=FALSE, ""x"","""")"
Worksheets("Report").Range("D5").Offset(counter, 0).Formula = ReportD
--------------------
When this is executed the formula in D5 becomes
Code:
The results are sometimes incorrect but when writing the exact same
formula manually, the results are correct.
For example one of the formulas that I'm using is
Code:
--------------------
Dim ReportD As String
ReportD = "=IF(ISNA(MATCH(R[0]C[-2],PID!B:B,0))=FALSE, ""x"","""")"
Worksheets("Report").Range("D5").Offset(counter, 0).Formula = ReportD
--------------------
When this is executed the formula in D5 becomes
Code: