Hello there,
I have a program that copies an Excel file to a temporary location, modifies and then prints it.
I am using FileCopy to copy the file to C:\TempSometimes, depends on how many programs I have loaded and how long ago i restarted my computer, I get "Permission Denied" error because the modification begins before the file finished copying.
How do I make my program wait for Filecopy to finish before opening the file?
Right now I am using Sleep 10000 (to be sure that it's done -- worst case scenario 10 seconds) but it's taking way too long because I am repeating the process for dozens of files
I have a program that copies an Excel file to a temporary location, modifies and then prints it.
I am using FileCopy to copy the file to C:\TempSometimes, depends on how many programs I have loaded and how long ago i restarted my computer, I get "Permission Denied" error because the modification begins before the file finished copying.
How do I make my program wait for Filecopy to finish before opening the file?
Right now I am using Sleep 10000 (to be sure that it's done -- worst case scenario 10 seconds) but it's taking way too long because I am repeating the process for dozens of files