Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking for open file before copying files in Excel VBA 2007

Status
Not open for further replies.

phudgens

Technical User
Jul 8, 2004
117
US
I have tried both the FileCopy and fc.CopyFile methods to copy files between folders using Excel VBA 2007, both work great - unless the file being copied is already open. I can't find code that allows me to check if a file is open before trying to copy it. Does anyone know of any such code? The program will need to copy all types of files, not just XLS* files.

Thanks,
Paul Hudgens
Denver
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top