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

How To Enable Macros in Outlook 2003 (XP Pro SP2)



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 10th 07, 04:05 PM posted to microsoft.public.outlook.program_vba
Ron
external usenet poster
 
Posts: 128
Default How To Enable Macros in Outlook 2003 (XP Pro SP2)

I've looked but cannot find anything, including in the help; I've been to
Tools-Macro-Security in Outlook; set the security level to low, still same
problem.

But I am more confused than this:

I have create a small project; Project1

Project 1
Microsoft Office Outlook
ThisOutlookSession
Modules
Module1

It looks like I"m in Module1.

The first statement is:

Public WithEvents outApp As Outlook.Application


but when I try to compile it "WithEvents" is flagged and invalid outside a
module.
BUt I'm in module1.

And, may be related, macros are not enabled.

Ron
Ads
  #2  
Old January 10th 07, 07:39 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How To Enable Macros in Outlook 2003 (XP Pro SP2)

Only class modules, ThisOutlookSession (a special case of a class module)
and forms (class modules with UI) can have declarations of WithEvents. Code
modules cannot.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"RON" wrote in message
...
I've looked but cannot find anything, including in the help; I've been to
Tools-Macro-Security in Outlook; set the security level to low, still
same
problem.

But I am more confused than this:

I have create a small project; Project1

Project 1
Microsoft Office Outlook
ThisOutlookSession
Modules
Module1

It looks like I"m in Module1.

The first statement is:

Public WithEvents outApp As Outlook.Application


but when I try to compile it "WithEvents" is flagged and invalid outside a
module.
BUt I'm in module1.

And, may be related, macros are not enabled.

Ron


 




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
how to enable active x for outlook 2003 Ramkumar Outlook - Installation 0 May 26th 06 09:58 PM
macros in Outlook 2003 steve Outlook and VBA 2 May 25th 06 06:41 PM
Domino Connector and XP Pro SP2 Jason Outlook - Installation 4 April 7th 06 01:00 PM
Link Outlook 2003 to Project pro 2003 without the server Microsoft Outlook - General Queries 2 March 16th 06 04:28 AM
enable macros Joanne Outlook and VBA 3 February 24th 06 05:44 PM


All times are GMT +1. The time now is 12:49 PM.


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