T
Turtle_Todd
I want to use a logical if statement checking a text word in a formula
statement.
I want programmatically to create the cell
=IF(A1="apples","Yes","No")
However, when I enter
Range("B1").Formula="=IF(A1="apples","Yes","No")"
in VB the quotes mess this all up. The single quotes don't work either
Range("B1").Formula="=IF(A1='apples','Yes','No')"
Any ideas?
statement.
I want programmatically to create the cell
=IF(A1="apples","Yes","No")
However, when I enter
Range("B1").Formula="=IF(A1="apples","Yes","No")"
in VB the quotes mess this all up. The single quotes don't work either
Range("B1").Formula="=IF(A1='apples','Yes','No')"
Any ideas?