Hello,
I'm trying to insert the following formula via code
=IF('P:\UTP\Candidate Tracking\The Candidate Records\[Bethany VanMaanen.xls]Main Record'!Rnwltr2 = "","",'P:\UTP\Candidate Tracking\The Candidate Records\[Bethany VanMaanen.xls]Main Record'!Rnwltr2)
But this is what it is placing in the cell:
=IF('P:\UTP\Candidate Tracking\The Candidate Records\[Bethany VanMaanen.xls]Main Record'!Rnwltr2 = ",",'P:\UTP\Candidate Tracking\The Candidate Records\[Bethany VanMaanen.xls]Main Record'!Rnwltr2)
Here is the code that I'm using:
Cells(Cell.Row, 65).Formula = "=IF('P:\UTP\Candidate Tracking\The Candidate Records\[" & myCandidate & ".xls]Main Record'!Rnwltr2 = "","",'P:\UTP\Candidate Tracking\The Candidate Records\[" & myCandidate & ".xls]Main Record'!Rnwltr2)"
Does anybody have suggestions as to how to make this work?