Hello
I use the IsFileOpen function from VBA Express : Excel - Check If a File Is Already Open to detect if a certain file (pdf or xlsx) is open. How can I close a pdf or xlsx file that is currently opened?
What I want to achieve:
for each objFile In objFolder.Files
If isFileOpen(objFile.path) then
'close objFile...
objFile.Delete
End If
Next
Thanks
I use the IsFileOpen function from VBA Express : Excel - Check If a File Is Already Open to detect if a certain file (pdf or xlsx) is open. How can I close a pdf or xlsx file that is currently opened?
What I want to achieve:
for each objFile In objFolder.Files
If isFileOpen(objFile.path) then
'close objFile...
objFile.Delete
End If
Next
Thanks