Systray Icon during a MS OUTLOOK VBA macro.

  • Thread starter Thread starter Rodryg
  • Start date Start date
R

Rodryg

Hi,

Is there any way to display a systray icon only during the execution of a
particular process (MS OUTLOOK VBA macro).

For example, I'd like to delete old Emails in my Inbox (older than today - 5
days) and during this process, display a systray Icon. Then, when done,
unload this icon from the systray.

Thanks
 
A system tray icon is displayed by handling a callback message from Windows
and it has to use that callback to handle mouse clicks. Usually in VB or VBA
you would place the callback code in a code module and the handler in a form
or class module. There's an example of using callbacks for message handling
on the mvps.org Web site, in one of the VB 6 sites, or you can Google for
links to callback handlers. It's not trivial to understand what's going on
and to modify the sample codes for your needs, BTW.
 
Back
Top