A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Running a macro



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #15  
Old February 7th 06, 10:01 PM posted to microsoft.public.outlook.program_forms
SuperSlueth
external usenet poster
 
Posts: 24
Default Running a macro

On Mon, 6 Feb 2006 16:47:44 -0500, "Sue Mosher [MVP-Outlook]"
wrote:

You might be confusing the MailItem.Open method and the MailItem.Open event. If you declare a MailItem object WithEvents and then instantiate it so that object represents a specific message, then the Open even fires when that message opens on the screen, whether the user does it manually or code does it programmatically. At that point, you should have access to the MailItem object's Attachments collection, but the message will not be displayed yet.

You might find the Inspector.Activate event works better for your scenario. It fires when the Inspector becomes the active window, which means it has displayed.



At last it working .... almost.

I need to open 1 email first, then there after it works ok.

Can you suggest a method in code of opening and closing an email.

It can be any mail.

Thanks for all your time
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My Outlook 2003 is running very slow, why? com Outlook - General Queries 6 May 15th 07 05:40 PM
Is outlook meant to be left running? [email protected] Outlook - General Queries 1 February 28th 06 04:20 AM
Create a re-running rule JDR Outlook - General Queries 2 February 15th 06 10:17 PM
Running rules on mailbox other than the default Brian Beck Outlook - General Queries 1 February 3rd 06 10:26 PM
an outlook2000 macro programming question..... Alont Outlook - General Queries 0 January 8th 06 04:14 AM


All times are GMT +1. The time now is 08:38 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.