View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Shorty[_3_] Shorty[_3_] is offline
external usenet poster
 
Posts: 19
Default Quotes in Macro Formula

Hi
this should be a quick one! im trying to put a formula in a cell ie
ActiveCell.Formula = "=CONCATENATE(TEXT(A1,"yyyy/mm/dd"))"

However as i have to put double quotes in for the date format excel
thinks it is at the end of the line, how can i put in the double quotes
without this happening?

ActiveCell.Formula = "=CONCATENATE(TEXT(A1," & chr0022 & "yyyy/mm/dd"
& chr0022 & "))"

or something like this?