![]() |
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 |
#21
|
|||
|
|||
![]()
Hi Ken,
Try setting a reference to CDO.DLL in the references for your VBA project. I have this already: Microsoft CDO 1.21 Library C:\Program Files\Common Files\System\MSMAPI\1033\CDO.DLL I'm starting to think this isn't possible...... |
Ads |
#22
|
|||
|
|||
![]()
Hi Ken,
Try setting a reference to CDO.DLL in the references for your VBA project. I have this already: Microsoft CDO 1.21 Library C:\Program Files\Common Files\System\MSMAPI\1033\CDO.DLL I'm starting to think this isn't possible...... |
#23
|
|||
|
|||
![]()
Found the/a solution.
Adding Option Explicit to the head of the Module, and then Diming each variable finally got results. Wish someone had mentioned this.... This now brings me to my next two questions: 1. How to go though each element and not cause an error message to be displayed when nothing is there (for example if CdoPR_BUSINESS_ADDRESS_POSTAL_CODE is empty, I get an error that allows me to End or Debug. I'd like to skip this, and just leave it empty)? 2. How to desable to prompt from Outlook asking if I want to allow the macro to access: A program is trying to access e-mail addresses you have stored in Outlook. Do you want to allow this? I can only allow 1, 2, 5 & 10 Minutes. But not an always allow. I have digitally signed the macros, and all work without prompting until CDO is accessed, then the prompt appears. |
#24
|
|||
|
|||
![]()
For 1 you'd add an On Error Resume Next statement and check for IsEmpty() on
the property and check for an error. If you have either you can clear the error and just move on. For 2 that's the reason most of stopped using CDO many years ago, the security. Client side CDO actually has tighter security than the Outlook object model (server side CDO has none of the security but should not be installed where Outlook is installed). There are hacks and kludges such as ExpressClickYes, but I'd rather not use things like that. As a substitute for CDO most of us have moved on to using Redemption. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "_M_a_t_t_" wrote in message ... Found the/a solution. Adding Option Explicit to the head of the Module, and then Diming each variable finally got results. Wish someone had mentioned this.... This now brings me to my next two questions: 1. How to go though each element and not cause an error message to be displayed when nothing is there (for example if CdoPR_BUSINESS_ADDRESS_POSTAL_CODE is empty, I get an error that allows me to End or Debug. I'd like to skip this, and just leave it empty)? 2. How to desable to prompt from Outlook asking if I want to allow the macro to access: A program is trying to access e-mail addresses you have stored in Outlook. Do you want to allow this? I can only allow 1, 2, 5 & 10 Minutes. But not an always allow. I have digitally signed the macros, and all work without prompting until CDO is accessed, then the prompt appears. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook Contacts Macro to Change Info | Jason | Outlook and VBA | 1 | November 14th 08 12:57 AM |
Macro to rename Subject of E-mail on exchange server(2007) | Ryan Arnold | Outlook and VBA | 4 | October 6th 08 04:30 AM |
outlook 2003 macro to extract calendar appointment info to Excel | CPOjoe | Outlook - Calandaring | 3 | July 15th 08 05:04 PM |
retrieving Outlook user info from Word macro | IndianSummer | Outlook and VBA | 1 | September 29th 07 01:05 AM |
Importing Outlook Alias info into an excel 2003 macro | fidgitthedigit | Outlook and VBA | 4 | May 31st 06 05:22 PM |