Persistent owner file ~$ in Word 2003I have a VBA application that will iterate thru a folder of Word docs and edit them. It will save them in a subfolder called &quot;Temp&quot;. When I run a second iteration thru the &quot;Temp&quot; folder of files it stops because it encounters  an owner file beginning with ~$ . The owner file is always of the last edited file. How can I close this file or change the code to not even attempt to open it? Thanks for the help. PS. The files are opened and saved on a network drive.© 2009 Microsoft Corporation. All rights reserved.Sun, 12 Jul 2009 02:51:49 Z488b4a0a-881a-4105-80f8-4e0fe2543576http://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/488b4a0a-881a-4105-80f8-4e0fe2543576#488b4a0a-881a-4105-80f8-4e0fe2543576http://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/488b4a0a-881a-4105-80f8-4e0fe2543576#488b4a0a-881a-4105-80f8-4e0fe2543576jfl4066http://social.msdn.microsoft.com/Profile/en-US/?user=jfl4066Persistent owner file ~$ in Word 2003I have a VBA application that will iterate thru a folder of Word docs and edit them. It will save them in a subfolder called &quot;Temp&quot;. When I run a second iteration thru the &quot;Temp&quot; folder of files it stops because it encounters  an owner file beginning with ~$ . The owner file is always of the last edited file. How can I close this file or change the code to not even attempt to open it? Thanks for the help. PS. The files are opened and saved on a network drive.Sat, 11 Jul 2009 20:16:21 Z2009-07-11T20:16:21Zhttp://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/488b4a0a-881a-4105-80f8-4e0fe2543576#264b9a1c-3bf4-4fbe-ad21-c7d01c1033f6http://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/488b4a0a-881a-4105-80f8-4e0fe2543576#264b9a1c-3bf4-4fbe-ad21-c7d01c1033f6Shasurhttp://social.msdn.microsoft.com/Profile/en-US/?user=ShasurPersistent owner file ~$ in Word 2003<p>These temp files get created when a document is opened (mostly when the document contains images, tables etc) and get automatically closed. At times they persist and are a nemesis<br/><br/>One possible option is to tweak the loop that gets  the word document. You can check for the file name, and skip the file and proceed to the next one.<br/><br/>If the file is already open then you can try<br/><br/>If InStr(1, ActiveDocument.Name, &quot;~$&quot;) Then<br/>    ActiveDocument.Close False<br/>End If<br/><br/><br/><br/>Cheers<br/>Shasur<br/></p><hr class="sig">http://www.vbadud.blogspot.comSun, 12 Jul 2009 02:06:50 Z2009-07-12T02:06:50Zhttp://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/488b4a0a-881a-4105-80f8-4e0fe2543576#c21c2d96-bcb6-4f85-833c-38d82cb9ed2chttp://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/488b4a0a-881a-4105-80f8-4e0fe2543576#c21c2d96-bcb6-4f85-833c-38d82cb9ed2cjfl4066http://social.msdn.microsoft.com/Profile/en-US/?user=jfl4066Persistent owner file ~$ in Word 2003Thanks Shasur. I thought I wasn't doing something right when closing the file. It is strange <br/>because in some editing sessions it will not appear. Sun, 12 Jul 2009 02:51:49 Z2009-07-12T02:51:49Z