View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Frank Stone Frank Stone is offline
external usenet poster
 
Posts: 134
Default Background macros?

hi,
from my experiences, it is not wise to run a macro in the
background while anyone is doing anything in the file.
but for your purposes i think you can put your code in the
before close event of the workbook.

-----Original Message-----
Is it possible to have a macro run in the background so

that a user can
open and edit a worksheet as normal, but when they close

or save that
sheet (or exit Excel) the macro catches the action and

springs to life.


Basically I need it to automatically password protect all
worksheets/books that are saved.

Any tips or ideas would be appreciated.

Thanks

Stuart


---
Message posted from http://www.ExcelForum.com/

.