![]() |
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. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 |
Ads |
#2
|
|||
|
|||
![]()
In article , Penny Miller wrote:
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. -- Hollis Paul Mukilteo, WA USA |
#3
|
|||
|
|||
![]()
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 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Penny Miller" wrote in message ... 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 |
#4
|
|||
|
|||
![]()
In article , Sue Mosher
[MVP-Outlook] wrote: 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. -- Hollis Paul Mukilteo, WA USA |
#5
|
|||
|
|||
![]()
No, the zone security setting is not related to the macro security setting.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Hollis Paul" wrote in message ... In article , Sue Mosher [MVP-Outlook] wrote: 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. -- Hollis Paul Mukilteo, WA USA |
#6
|
|||
|
|||
![]()
In article , Sue Mosher
[MVP-Outlook] wrote: 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? -- Hollis Paul Mukilteo, WA USA |
#7
|
|||
|
|||
![]()
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 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Hollis Paul" wrote in message ... In article , Sue Mosher [MVP-Outlook] wrote: 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? -- Hollis Paul Mukilteo, WA USA |
#8
|
|||
|
|||
![]()
In article , Sue Mosher
[MVP-Outlook] wrote: 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. -- Hollis Paul Mukilteo, WA USA |
#9
|
|||
|
|||
![]()
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. "Penny Miller" wrote in message ... 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 |
#10
|
|||
|
|||
![]()
In article , Penny Miller wrote:
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! -- Hollis Paul Mukilteo, WA USA |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook macro abends but Word macro runs successfully | Jreue | Outlook and VBA | 0 | December 14th 06 12:55 AM |
How to write a program/macro to send a mail to a groups of e-mail | Adi | Outlook and VBA | 8 | December 4th 06 07:20 AM |
Call macro stored in Excel workbook from Outlook's macro | Gvaram | Outlook and VBA | 5 | October 4th 06 07:26 AM |
assign macro to custom toolbar button | Rod Nolan | Outlook and VBA | 1 | September 7th 06 06:34 AM |
$$ looking for someone to write a macro for me | [email protected] | Outlook and VBA | 0 | March 16th 06 12:24 AM |