Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Close an Excel file if is found it open.
I need to better understand the default when Code asks an .xlS file to open on a shared network. It may be my imagination, but it seems I am getting inconsistent results whan an user has a shared network file open on his/her network and such file is being opened on either my desktop or on an Autosys server. I want to make changes in such file and send out e-mails based on the results, but I do not want to save any changes in such file (using neither the same filename nor any revised filename). Is below correct, for the two fact situations? Fact Situation 1 -- an user has such shared network file open, but such file is not involved in a macro that has crashed. My macro would open the file as 'read only' and my macro would run, and shut Excel down, without any errors. Fact situation 2 -- an user has such shared network file open, and such file is involved in a macro that has crashed. My macro would not run, unless such error is trapped. Thanks for a response, Chuckles123 -- Chuckles123 ------------------------------------------------------------------------ Chuckles123's Profile: http://www.excelforum.com/member.php...o&userid=14948 View this thread: http://www.excelforum.com/showthread...hreadid=534809 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
try to open excel files from explorer, 'file not found' | Excel Discussion (Misc queries) | |||
Open, Save and close Excel 2007 file with a cmd command | Excel Discussion (Misc queries) | |||
Macro to open and close an Excel file | Excel Programming | |||
open new microsoft excel sheet and found my last same file all ti. | Excel Worksheet Functions | |||
Delete/Close Excel file that is kept OPEN | New Users to Excel |