![]() |
| 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. |
|
|||||||
| Tags: macro, problems, recipientadd, signing |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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 | |
|
|
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 |