Can anyone help me with this one please ?
I have a bit of code that writes to an Excel file and works fine. I check to see if the file exists before opening it using ...If Dir("C:\testing.xls") = "" Then.... which works too, but I also need to be able to write to the file if the user already has it open so I need to not only check that that particular file is open, but be able to write to its object consistently for hours on end, even if the user is opening and closing other Excel files.I can't find any way of linking an open file to my Excel object.
Richard
I have a bit of code that writes to an Excel file and works fine. I check to see if the file exists before opening it using ...If Dir("C:\testing.xls") = "" Then.... which works too, but I also need to be able to write to the file if the user already has it open so I need to not only check that that particular file is open, but be able to write to its object consistently for hours on end, even if the user is opening and closing other Excel files.I can't find any way of linking an open file to my Excel object.
Richard