Hi guys, at the end, the second option worked , create a copy of the file in another temporary directory. Below I leave the code I make in case someone else needs it.
Thanks everyone for your help
Private Function MakeCopyFile(strDirPath As String, strFileName As String) As String
Dim iFilenum...