View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
ETLahrs ETLahrs is offline
external usenet poster
 
Posts: 17
Default Stop Macro if file is already open

I am working with Excel files saved on a shared network drive. Each employee
has their own sheet to track errors. To prevent any other employee from
seeing the errors, I have created a macro to take the individuals sheet and
move the data to the ADMIN file which only the manager has access to view the
hidden sheets. However, I want to make a check that will stop the macro if
the ADMIN file is already open to avoid the data from not being saved and the
employee just closing out with the new data not added.

How would I go about adding this type a check and stop into the current macro.

Thanks,
Ed