write macro for toolbar?

P

Penny Miller

I'm trying to figure out how to write a macro to open a form that I created
in the Organizational Forms Library. This is what I've done so far;

Sub TimeOffRequest()
Set myFolder = Session.GetDefaultFolder(olFolderInbox)
Set myItem = myFolder.Items.Add("IPM.Note.Time Off - DIS_v1a")
myItem.Display
End Sub

However, when I go to run the macro I get an vb error that says;
The macros in the project are disabled.

I thought I had enabled all macros, what setting did I miss?

Exchange Server 2003/Outlook2003
 
H

Hollis Paul

I thought I had enabled all macros, what setting did I miss?
You have to set the security level of the security zone in which the
form resides to medium-low or low, to get the scripts to run
automatically. To do this, go to Tools->Options->Security Tab, and
then click the Zone Settings button, OK the warning and then you will
be able to set the zone settings.
 
S

Sue Mosher [MVP-Outlook]

The macro security settings are not in Tools | Options, but on the Tools | Macro | Security dialog.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
H

Hollis Paul

Sue Mosher said:
The macro security settings are not in Tools | Options, but on the
Tools | Macro | Security dialog.
Well, that is certainly an easier place to find, and has a better
explanation, but I bet the other place sets them also. And you get the
colored icons that tell you which zone you are modifying.
 
S

Sue Mosher [MVP-Outlook]

No, the zone security setting is not related to the macro security setting.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
H

Hollis Paul

Sue Mosher said:
No, the zone security setting is not related to the macro security
setting.
OK, I'll buy that; but how are the zone security settings used in
Outlook?
 
S

Sue Mosher [MVP-Outlook]

They're not used at all in Outlook 2007. In earlier versions, they govern the rendering behavior of HTML-format messages and posts.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
H

Hollis Paul

Sue Mosher said:
They're not used at all in Outlook 2007. In earlier versions, they
govern the rendering behavior of HTML-format messages and posts.
Thanks, Sue. It is nice to learn something just as they go obsolete.
If I had passed up this thread, I could have been blissfully ignorant.
 
P

Penny Miller

Actually, what made the difference wasn't that fact that my macro settings
were incorrect it was how the form was published. I needed to check the box
in the properties that states Send form definition with item. Once I did
that It was fine.
 
H

Hollis Paul

Actually, what made the difference wasn't that fact that my macro settings
were incorrect it was how the form was published. I needed to check the box
in the properties that states Send form definition with item. Once I did
that It was fine.
How very strange. But then, I have long held that Microsoft has changed the
model of the Operating System from parameters in a box, to parameters on a
Mobius strip that runs throughout the OS and Office Applications. Anything can
effect anything else on that strip and you have no way of knowing.

I just noticed that you are just a hop, skip, and a whole world away over there
East of the Mountains. Isn't winter fun!
 
P

Penny Miller

Yes, I'm in the Wenatchee area and we have a bunch of snow. Were you
affected by the storm over your way?
 
H

Hollis Paul

Yes, I'm in the Wenatchee area and we have a bunch of snow. Were you
affected by the storm over your way?
Not terribly. We lost power, of course, but no other real damage. A
seedling apple tree (one of Johnny Appleseed's bad seeds) tipped over
down in the swamp area, and two wild cherry trees snapped off. They
will be a pain to clean up, but not a serious problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top