View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Zack Barresse[_3_] Zack Barresse[_3_] is offline
external usenet poster
 
Posts: 101
Default How check if workbook open?

Ivan Moala has a solution to checking if a file is open on a network or not,
an API method and a VBA method he
http://www.xcelfiles.com/IsFileOpen.html

HTH

--
Regards,
Zack Barresse, aka firefytr
To email, remove NOSPAM


"Ian Elliott" wrote in message
...
Thanks for any help.
I have a macro (Excel 2000) in a workbook that copies and pastes some tabs
into the workbook it opens. But sometimes the files that it opens are
already
open by another user. In that case, there is an error message and some
other
stuff can happen that messes up the program. I would like to stop this, is
there any properties or code that I can do to tell if a file is already
open?
I thought of using an On Error stuff, but is there another way?
Thanks again.