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 and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

autorun macro in startup o in new email



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old August 2nd 06, 06:17 PM posted to microsoft.public.outlook.program_vba
Julio Carvajal
external usenet poster
 
Posts: 7
Default autorun macro in startup o in new email

Hi,
I need run one simple macro in start of outlook.
I write in ThisoutlookSession
Sub application_startup
msgbox "Hello"
endsub
but not happened nothing when I start outlook
Why?
Other example:
Private Sub oApp_NewMail()
MsgBox "You have received new mail!"
End SubWhen I received one new mail nothing happened tooIf I click in the
any line of macro and click in play the macro run good.Thanks


 




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
vba macro to print email and attachments outlook 2000 Dan over in IT Outlook and VBA 2 June 7th 06 08:08 PM
outlook startup Peter Labelle Outlook - General Queries 1 May 23rd 06 09:42 PM
Outlook 2003 startup chemnut94707 Outlook - Using Contacts 1 May 5th 06 11:13 PM
View 2 calendars on startup Ruben Outlook - Calandaring 5 April 7th 06 05:11 AM
email forwarding macro JTL Outlook and VBA 2 February 7th 06 05:42 PM


All times are GMT +1. The time now is 06:51 AM.


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.