Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   How Do I Get Outlook Startup Event to Fire? (http://www.outlookbanter.com/outlook-vba/44667-how-do-i-get-outlook.html)

John Lane March 28th 07 09:10 PM

How Do I Get Outlook Startup Event to Fire?
 
Below is the code for a message box for the Start Event (right out of the
example). Nothing happens. The code is in
ThisOutlookSession/Application/Start. Any ideas? Thanks.

Private Sub Application_Startup()
MsgBox "Welcome, " & Application.GetNamespace("MAPI").CurrentUser
Application.ActiveExplorer.WindowState = olMaximized
End Sub

John Lane March 28th 07 09:18 PM

How Do I Get Outlook Startup Event to Fire?
 
Never mind. yes it did. I have it in a custom form. I didn't realize by just
being in the custom form, even though it isn't launched, causes the standard
form to display the message too.

"John Lane" wrote:

Below is the code for a message box for the Start Event (right out of the
example). Nothing happens. The code is in
ThisOutlookSession/Application/Start. Any ideas? Thanks.

Private Sub Application_Startup()
MsgBox "Welcome, " & Application.GetNamespace("MAPI").CurrentUser
Application.ActiveExplorer.WindowState = olMaximized
End Sub



All times are GMT +1. The time now is 07: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-2006 OutlookBanter.com