I have a problem with adding formula to a cell through VBA. Everything is ok till the moment when I add punctuation mark like "(" to it. What I'm doing wrong here? I've tried already using chr() function and it doesn't work.
Do Until ws.Cells(i, 1) = ""
If ws.Cells(i, 7).Value <> "" Then
If ws.Cells(i, 7).Value <> 0 Then
ws.Cells(i, 7) = 200
ws.Cells(i, 8).Value = 0
ws.Cells(i, 9).Value = 0
ws.Range("J" & i).Formula = "=IF(H" & i & "-F" & i & "<=0;0;H" & i & "-F" & i & ")"
Regards, Ukalo