Auto delete spscific folder (when exit)

  • Thread starter Thread starter eligrt
  • Start date Start date
E

eligrt

Hi everyone,

im trying to write ascript the will auto delete a specific folder whe
i exit the MS outlook.

does anyone know how to do it?


10x
 
You would need a COM addin for that probably. A script can't trap the Quit
event and the Quit event in Outlook macro code fires only after all Outlook
objects are already out of scope.

A script could be run manually whenever you wanted but to catch an event
when Outlook is closing but Outlook objects are still in scope would be done
using a COM addin. Then you could delete the folder in your UnInitHandler
code.

See the ItemsCB COM addin sample (VB 6) on the Resources page at
www.microeye.com for an example of what you'd have to do.
 
Back
Top