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

Tags: , , ,

Problems with Recipient.Add and Macro Signing ???





 
 
Thread Tools Display Modes
  #1  
Old June 19th 06, 02:30 PM posted to microsoft.public.outlook.program_forms
asousa
external usenet poster
 
Posts: 3
Default Problems with Recipient.Add and Macro Signing ???

Hello,

I have created a custom message form in Outlook, where I deleted the
To: and Cc: fields, leaving only the Subject and Main Body, adding a
Image and some text.

I have save the Form in the Personal Form Library.

Afterwards I have created a Macro in Outlook with this code:

Sub DisplayForm()
Set myFolder = Session.GetDefaultFolder(olFolderInbox)
Set myItem = myFolder.Items.Add("IPM.Note.SuppRequest")
myItem.Display
myItem.Recipient.Add ")
End Sub

Then I noticed Outlook Macro restrictions were in effect and went on to
search out to Sign the Macro. But at this point the Macro itself was
working. It would display a warning, I would accept it, then the Macro
would show up, filling the To: field in the background and I would be
able to send the Macro.

As I mentioned I went on with my search for a Macro Signing procedure
accessible to my company. Eventually I used OpenSSL under Linux to
create a Root CA (which I will install in all client machines) and a
Client Certificate from which I extracted the P12 certificate.
Following this, I opened Outlook and signed the Macro, then resetting
the security level to "High".

Now the code myItem.Recipient.Add ") is
displaying a 438 error ( Object doesn't support this property or method
) when I debug the Macro.

This only happened after I signed it. Before it was working just fine.

Kind of wierd, not?

If anyone could help me, I would be greatly appreciated.

Best Regards,

Alexandre Sousa

Ads
  #2  
Old June 19th 06, 03:33 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Problems with Recipient.Add and Macro Signing ???

There is no MailItem.Recipient object. It's Recipients:

myItem.Recipients.Add ")

You can also simply use:

"

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

"asousa" wrote in message ups.com...
Hello,

I have created a custom message form in Outlook, where I deleted the
To: and Cc: fields, leaving only the Subject and Main Body, adding a
Image and some text.

I have save the Form in the Personal Form Library.

Afterwards I have created a Macro in Outlook with this code:

Sub DisplayForm()
Set myFolder = Session.GetDefaultFolder(olFolderInbox)
Set myItem = myFolder.Items.Add("IPM.Note.SuppRequest")
myItem.Display
myItem.Recipient.Add ")
End Sub

Then I noticed Outlook Macro restrictions were in effect and went on to
search out to Sign the Macro. But at this point the Macro itself was
working. It would display a warning, I would accept it, then the Macro
would show up, filling the To: field in the background and I would be
able to send the Macro.

As I mentioned I went on with my search for a Macro Signing procedure
accessible to my company. Eventually I used OpenSSL under Linux to
create a Root CA (which I will install in all client machines) and a
Client Certificate from which I extracted the P12 certificate.
Following this, I opened Outlook and signed the Macro, then resetting
the security level to "High".

Now the code myItem.Recipient.Add ") is
displaying a 438 error ( Object doesn't support this property or method
) when I debug the Macro.

This only happened after I signed it. Before it was working just fine.

Kind of wierd, not?

If anyone could help me, I would be greatly appreciated.

Best Regards,

Alexandre Sousa

  #3  
Old June 19th 06, 03:52 PM posted to microsoft.public.outlook.program_forms
asousa
external usenet poster
 
Posts: 3
Default Problems with Recipient.Add and Macro Signing ???

Sue,

Thanks once more. Now I felt really dumb. It's what happens when people
work under stress.
To avoid this happening again, do you have any website containing a
tree of objects and methods regarding the Outlook API?

Best Regards,

Alexandre Sousa

Sue Mosher [MVP-Outlook] wrote:
There is no MailItem.Recipient object. It's Recipients:

myItem.Recipients.Add ")

You can also simply use:

"

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

"asousa" wrote in message ups.com...
Hello,

I have created a custom message form in Outlook, where I deleted the
To: and Cc: fields, leaving only the Subject and Main Body, adding a
Image and some text.

I have save the Form in the Personal Form Library.

Afterwards I have created a Macro in Outlook with this code:

Sub DisplayForm()
Set myFolder = Session.GetDefaultFolder(olFolderInbox)
Set myItem = myFolder.Items.Add("IPM.Note.SuppRequest")
myItem.Display
myItem.Recipient.Add ")
End Sub

Then I noticed Outlook Macro restrictions were in effect and went on to
search out to Sign the Macro. But at this point the Macro itself was
working. It would display a warning, I would accept it, then the Macro
would show up, filling the To: field in the background and I would be
able to send the Macro.

As I mentioned I went on with my search for a Macro Signing procedure
accessible to my company. Eventually I used OpenSSL under Linux to
create a Root CA (which I will install in all client machines) and a
Client Certificate from which I extracted the P12 certificate.
Following this, I opened Outlook and signed the Macro, then resetting
the security level to "High".

Now the code myItem.Recipient.Add ") is
displaying a 438 error ( Object doesn't support this property or method
) when I debug the Macro.

This only happened after I signed it. Before it was working just fine.

Kind of wierd, not?

If anyone could help me, I would be greatly appreciated.

Best Regards,

Alexandre Sousa


  #4  
Old June 19th 06, 04:14 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Problems with Recipient.Add and Macro Signing ???

1) The object browser in Outlook VBA. Press F2.

2) MSDN.

3) References posted at http://www.outlookcode.com/d/outtech.htm

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

"asousa" wrote in message ups.com...

To avoid this happening again, do you have any website containing a
tree of objects and methods regarding the Outlook API?


 




Thread Tools
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
Maintain form when recipient forwards to another recipient Holly Utzinger Outlook - Using Forms 3 May 5th 06 12:40 AM
PlanPlus v 3 (and Outlook 2003 SP2) - install problems, uninstall problems, bugs? kkernspa Add-ins for Outlook 0 April 9th 06 04:07 AM
Macro to add calendar items from "birthday" field of imported cont Peter K. Outlook and VBA 2 April 6th 06 03:32 PM
Strange Outlook Add-In problems Christoph Add-ins for Outlook 6 March 6th 06 06:58 PM
Macro to add an attachment Bear Outlook - Using Forms 1 February 3rd 06 05:57 AM


All times are GMT +1. The time now is 06:57 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Free Ringtone - Debt Consolidation - Mortgages - Remortgages - Electricity Suppliers