I am currently trying to write the contents of an SQL table to an existing Excel database. I can use CreateTextFile and this will open a new Excel project which works fine. I assumed OpenTextFile could be used with an existing file which contained macros but this does not seem to work.
Any help apprreciated
Any help apprreciated