I am trying to get my VB script to enter an Excel formula into a cell. Unfortunately I had no luck so far.
Sheets("ABC").Select
Range("B2").Value = "=IF(Mat_Location!F2=0;"";Mat_Location!F2)"
After some googling and searching on this site I figured it would be because of the quotation marks and so I tried changing the quotation marks to double quotation marks.
Sheets("ABC").Select
Range("B2").Value = "=IF(Mat_Location!F2=0;"""";Mat_Location!F2)"
That also didn't help.
Any help is appreciated. Thanks in advance.