Hi!
I want to use a Control Button to run a simple formula in Microsoft Excel.
The problem is that VBA won't recognise the text portion of the formula. I'm sure there's a simple answer, but I can't figure it out! The code is as follows:
Private Sub cmdCheck_Click()
Range("K118", Cells(R, 11)).Formula = _
"=IF(K118 = 1,"YES",0)"
End Sub
I realise that the quotations around the text YES is the problem, but how do you solve it?
Thanks in advance!
I want to use a Control Button to run a simple formula in Microsoft Excel.
The problem is that VBA won't recognise the text portion of the formula. I'm sure there's a simple answer, but I can't figure it out! The code is as follows:
Private Sub cmdCheck_Click()
Range("K118", Cells(R, 11)).Formula = _
"=IF(K118 = 1,"YES",0)"
End Sub
I realise that the quotations around the text YES is the problem, but how do you solve it?
Thanks in advance!