View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Paul Mathews Paul Mathews is offline
external usenet poster
 
Posts: 84
Default Having problems with quotation marks

if range("D2").Formula = "=IF(C240,""Overtime"",""Normal"")" then...

"headly" wrote:

This formula doesn't work; I tried ampersands but no luck, any ideas
appreciated. TY

if range("D2").Formula = "=IF(C240,"Overtime","Normal") then ok = ok + 1