My boss developed this formula for Excel. I want to automate placement
of code in any workbook, so I put it in my personal macro workbook.
However, the complie check expects an end of statement for the two
formula lines, after the second quotation mark. How do I get it to
accept that there will be many quotation marks?
Sub Date_File_Sheet_Name()
'
' Date_File_Sheet_Name Routine
' Enters current date, path, Workbook name and current sheet name in
the active cell.
' Moves one cell down, and enters the current sheet name.
'
ActiveCell.FormulaR1C1 = "=CONCATENATE(TEXT(NOW(),"dd mmmm
yyyy"), ", ", CELL("filename"))"
ActiveCell.Offset(1, 0).Range("A1").Select
ActiveCell.FormulaR1C1 = "=RIGHT(CELL("filename",A1),(LEN(CELL
("filename",A1))-SEARCH("]",CELL("filename",A1))))"
End Sub