detect archive being opened

  • Thread starter Thread starter Tony WONG
  • Start date Start date
T

Tony WONG

to avoid archive.pst over 2G, i have a vba to rename the archive when it has
more 700m size

the vba run when outlook start

however, it comes to error when the users forget to close the archive.pst in
outlook properly

how can it detect the archive.pst being opened in outlook 2007?

and

how can it force the user to close archive.pst file when close outlook 2007?

Thanks a lot.

tony
 
In Outlook 2007 you can use the Stores.StoreAdd event to know when a user
has opened another Store (PST file or Exchange mailbox). To know when a user
has removed a Store (closed it) you can use the Stores.BeforeStoreRemove
event. You can iterate the Stores collection on close of Outlook before the
collection goes out of scope, but you can't force the user to close the
store or prevent Outlook from closing if they haven't done so. There is no
method to close a Store using code.
 
Back
Top