create desktop alert

G

Guest

I'm just starting out with VBA in Outlook, but, is there any way to create a
desktop alert, similar to the one that pops up when new mail comes in?
 
G

Guest

I started working on a UserForm for this, but, is there any way to make it
act like the desktop alert, where it will appear (without taking focus) and
then disappear after a set amount of time?
 
M

Michael Bauer [MVP - Outlook]

You can close it by using a timer. Here's a sample for the timer:
http://www.vboffice.net/sample.html?mnu=2&lang=en&smp=4&cmd=showitem&pub=6

Not sure if this works but you might try to set the focus back to the
ActiveExplorer or ActiveInspector. Both have an Activate method.

If not Outlook but any other application has the focus before displaying
your UserForm then you're probably lost. A lot of Win32 API were necessary
to work around that; no stuff for beginners.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Synchronize Color Categories & Ensure that Every Item Gets Categorized:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>

Am Wed, 7 Nov 2007 17:05:00 -0800 schrieb bzuerlein:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top