I am having a Problem with VBA when writing the following line:
ActiveCell.FormulaR1C1 = _
"=IF(COUNTIF(Sheets("PrepaymentCustomer").Range("B2:B4"),RC[-38])>=1,""yes"",""no"")"
VBA states an 'Compile error: Expected: end of statement'. Earlier in the code the Sheet "Overview" is selected and then the Cell with
Sheets("Overview").Select
Range("AO2").Select
Can anyone help me why this is not working? I figured the error is caused by the statement Sheets("PrepaymentCustomer").Range("B2:B4")
.
Thanks