I'm having an application made with vba. Occasionally a sheet is exported as a pdf file on a network hard drive, overwriting an existing pdf file. If the pdf file is open on a computer, there's an error message when you try to export it. Is it possible to export it (update the pdf file) while it's opened on another computer? It's always a hassle to find where it's open, it interrupts the workflow greatly.
This is the code:
sht.Visible = xlSheetVisible
sht.ExportAsFixedFormat xlTypePDF, _
"G:\Info\DontSell.pdf", _
xlQualityStandard, True, False
sht.Visible = xlSheetHidden