How to delete a file after saving the file using ActiveDocument.SaveAs2
The code above doesn't work because WORD 2010 doesn't release the file handle of the old document...
Code:
Sub savefile()
ActiveDocument.SaveAs2 FileName:="c:\test\test.docm"
Kill ActiveDocument.FullName
End Sub
The code above doesn't work because WORD 2010 doesn't release the file handle of the old document...