Programmatically clear the system tray icon?

  • Thread starter Thread starter David E. Battey
  • Start date Start date
D

David E. Battey

Is it possible to clear the "envelope" system tray icon that appears when
new mail has arrived using VBA? If so, how?

Thanks,
David
 
David E. Battey said:
Looks promising -- thanks.

However, I can't figure out a way to get the hWnd to pass to
RemoveNewMailIcon. How do I do this.

My mistake. Despite the comments in the code, I was calling KillNewMailIcon
instead of RemoveNewMailIcon.
 
Back
Top