Hi,
I'm trying to insert this formula into my file (a VB generated file based on a currently open file) so that the new file will have a cell returning it's actual name.
What is the best way to do this? I'd like to be able to just insert a formula into a cell in the new document, but this doesn't seem to be working:
Range("H8").Select
ActiveCell.FormulaR1C1Local = "=MID(CELL("filename",A1),SEARCH("[",CELL("filename",A1))+1, SEARCH("]",CELL("filename",A1))-SEARCH("[",CELL("filename",A1))-1)"
(the issue I believe is using the wrong active cell formula call)
Any tips?
Thanks,
Bookmarks