Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks in advance.
My module(not Excel VBA) genrated automatically every two hours an Excel File (Performance.xls) to a predefined network folder. Since somebody leave this file open, 'File Sharing Violation' error happens and it is not being updated at all. Q1. Is there any way to overwrite even he file is open. Q2. If not, at leaset to close error dialog box. Appreciated |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You could try setting it as a shared workbook, and set the settings to always
overwrite other users changes (In 2007 its on the "review" tab). You could also change the Windows permissions to allow it to open to "read only" for all other users and "read/write" for you (assuming others won't need to modify the file). "Jay" wrote: Thanks in advance. My module(not Excel VBA) genrated automatically every two hours an Excel File (Performance.xls) to a predefined network folder. Since somebody leave this file open, 'File Sharing Violation' error happens and it is not being updated at all. Q1. Is there any way to overwrite even he file is open. Q2. If not, at leaset to close error dialog box. Appreciated |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
In addition to Mike's excellent suggestions, you could also run some code to
see if the file is open. The URL below is a link to the Microsoft Office Knowledge Base and has all the necessary instructions and code to check if a file is open: http://support.microsoft.com/kb/213383 -- Kevin Backmann "mike" wrote: You could try setting it as a shared workbook, and set the settings to always overwrite other users changes (In 2007 its on the "review" tab). You could also change the Windows permissions to allow it to open to "read only" for all other users and "read/write" for you (assuming others won't need to modify the file). "Jay" wrote: Thanks in advance. My module(not Excel VBA) genrated automatically every two hours an Excel File (Performance.xls) to a predefined network folder. Since somebody leave this file open, 'File Sharing Violation' error happens and it is not being updated at all. Q1. Is there any way to overwrite even he file is open. Q2. If not, at leaset to close error dialog box. Appreciated |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
i cann't save my excel file on network it says sharing violation | New Users to Excel | |||
Sharing Violation! | Excel Worksheet Functions | |||
How do I stop sharing violation errors in Excel 2003 - file NOT sh | Excel Discussion (Misc queries) | |||
Sharing Violation Error while opening Excel file with Win Runner | Excel Discussion (Misc queries) | |||
sharing violation | Excel Discussion (Misc queries) |