"enable macros" and "disable macros" dialog


I made a custom form in my outlook 97 , it is stored on
the local pc and not on an exchange server.

the problem is that every time I a message based on that
form , I get the "enable macro" | "disable macro" dialog
and I surely can't ship this form as an application with
that poping up every time , how do I get rid of it ?


even in end-client computer I can't gurrante an exchange
server exist and the form will be probably stored in the
local pc too.

Who is Participating?
chewhoungConnect With a Mentor Commented:
Here's the answer from Microsoft:

OL98: Questions About Custom Forms and Outlook Solutions
Last reviewed: September 2, 1998
Article ID: Q182349


The information in this article applies to:
Microsoft Outlook 98

This article answers some of the more commonly asked questions about creating custom Microsoft Outlook 98 forms or programming Outlook either through Microsoft Visual Basic Scripting Edition (VBScript) or Visual Basic for Applications Automation.

Topics covered include:

Available resources for customizing Outlook
Setting up a simple form for use in a folder (message classes)
Custom forms and programming limitations
Disabling the enable/disable macro virus warning
Cannot select a control in design mode
Data does not get saved with form
Programmatically referring to folders and items
How to use Automation with Outlook
One-off forms
Programmatically importing items into Outlook
Using the SetColumns method
Working with User-defined fields
Using Outlook 98's new contact fields
Control and field events
General information about VBScript


Where do I get started with custom forms or programming Outlook?

For more information about available resources for learning how to create solutions with Outlook 98, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q180826
   TITLE     : OL98: Resources for Custom Forms and Programming

I have created a custom form for my Contacts, Tasks, and so on, but it is not being used when I create a new item, when I open an existing item I had before I created the form, or when I create a new item. Why is my form not being used?

To use a custom Outlook form, there are three steps you need to complete.
First, publish the form in the folder or forms library where you will use it. On the custom form File menu, click Publish Form. The name of the form is also the "Message Class," which is important for the next two steps.

Second, make this new form the default form for that folder. Using your right mouse button, click the folder and from the shortcut menu, click Properties. In the "When posting to this folder, use" list, click to select your custom form. Now new items that you create will use the custom form instead of the default Outlook form.

Third, if you have any existing items in the folder that should use this new form, you must change the Message Class field in each of the items in the folder. The Message Class field of an item tells Outlook which form to use to display the item. You cannot directly change this field from an Outlook since it is considered read-only, but you can use VBScript or Automation code to change it.

For more information about changing the message class of an item in a folder, please see the following articles in the Microsoft Knowledge Base:

   ARTICLE-ID: Q182274
   TITLE     : OL98: How to Update Existing Items to Use a New
               Custom Form

   ARTICLE-ID: Q182361
   TITLE     : OL98: Word 97 Document to Change Outlook Folder
               Message Class

I am trying to do something but it doesn't seem possible. Is it?

Outlook does not support a "full" object model, such as those in Microsoft Word or Microsoft Excel, so what you are trying to do may not be possible. Also, there may be other Outlook design considerations or limitations that may prevent you from using a desired approach in creating a solution.
For more information about some of the more common things that cannot be done with custom forms, VBScript, or Outlook Automation, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q182402
   TITLE     : OL98: Custom Forms and Programming Limitations

How can I disable the macro warning?

If the form is not located in a trusted location, then Outlook will display the macro warning for your protection against potentially maliciously-written programming code, commonly called macro viruses.

Disable the Macro Warning

Open the form that causes the Macro Warning dialog to open.

On the Tools menu, point to Forms and click Design This Form.

On the Properties tab, click to uncheck Send form definition with item.

On the Tools menu, point to Forms, and click Publish Form.

Close the form. It is not necessary to save the changes if prompted.

For more information about this issue, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q182376
   TITLE     : OL98: Why Outlook Displays a Security Warning Opening
               an Item


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.