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 - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

write macro for toolbar?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 13th 06, 11:04 PM posted to microsoft.public.outlook.program_forms
Penny Miller
external usenet poster
 
Posts: 34
Default write macro for toolbar?

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  
Old December 14th 06, 03:03 AM posted to microsoft.public.outlook.program_forms
Hollis Paul
external usenet poster
 
Posts: 242
Default write macro for toolbar?

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  
Old December 14th 06, 01:37 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default write macro for toolbar?

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  
Old December 14th 06, 09:19 PM posted to microsoft.public.outlook.program_forms
Hollis Paul
external usenet poster
 
Posts: 242
Default write macro for toolbar?

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  
Old December 14th 06, 10:29 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default write macro for toolbar?

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  
Old December 15th 06, 09:53 PM posted to microsoft.public.outlook.program_forms
Hollis Paul
external usenet poster
 
Posts: 242
Default write macro for toolbar?

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  
Old December 15th 06, 11:03 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default write macro for toolbar?

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  
Old December 16th 06, 05:12 AM posted to microsoft.public.outlook.program_forms
Hollis Paul
external usenet poster
 
Posts: 242
Default write macro for toolbar?

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  
Old December 20th 06, 10:07 PM posted to microsoft.public.outlook.program_forms
Penny Miller
external usenet poster
 
Posts: 34
Default write macro for toolbar?

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  
Old December 21st 06, 12:35 AM posted to microsoft.public.outlook.program_forms
Hollis Paul
external usenet poster
 
Posts: 242
Default write macro for toolbar?

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
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
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


All times are GMT +1. The time now is 08:18 PM.


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