Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Enable/Disable Macros when walking public folders in loop (http://www.outlookbanter.com/outlook-vba/47557-enable-disable-macros-when-walking.html)

Matt Williamson May 4th 07 03:33 PM

Enable/Disable Macros when walking public folders in loop
 
I'm extracting data from Outlook to put into another program. I wrote a
program in VB6 to do it because we use a custom form for public contact data
and it has over 600+ custom fields in it. On 2 contacts, I'm getting an
Enable/Disable macros dialog but I can't determine why? Where are all of the
possible places I can look? The form itself does have some code behind it
but this only happens on 2 contacts out of 4000. I also think these 2
contacts are ones that I've gone into and with "Design this form" and looked
at the All Fields data and closed without saving any changes. I can post my
code if that seems relevant.

Any help appreciated

Matt



Sue Mosher [MVP-Outlook] May 4th 07 03:41 PM

Enable/Disable Macros when walking public folders in loop
 
The per-item enable-disable macros prompt suggests that you're using a very old version of Outlook and that those items have one-off forms with code behind them. The MessageClass property value will confirm whether it's a one0off.

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

"Matt Williamson" wrote in message ...
I'm extracting data from Outlook to put into another program. I wrote a
program in VB6 to do it because we use a custom form for public contact data
and it has over 600+ custom fields in it. On 2 contacts, I'm getting an
Enable/Disable macros dialog but I can't determine why? Where are all of the
possible places I can look? The form itself does have some code behind it
but this only happens on 2 contacts out of 4000. I also think these 2
contacts are ones that I've gone into and with "Design this form" and looked
at the All Fields data and closed without saving any changes. I can post my
code if that seems relevant.

Any help appreciated

Matt



Matt Williamson May 4th 07 04:00 PM

Enable/Disable Macros when walking public folders in loop
 
The MessageClass for those 2 is IPM.Contact whereas for all of the other's
it's IPM.Contact.Contact Manager which is the custom form in the Org Forms
Library. I'm not seeing where I can change it for just these individual
contacts though. Any insight?

TIA

Matt


"Sue Mosher [MVP-Outlook]" wrote in message
...
The per-item enable-disable macros prompt suggests that you're using a very
old version of Outlook and that those items have one-off forms with code
behind them. The MessageClass property value will confirm whether it's a
one0off.

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

"Matt Williamson" wrote in message
...
I'm extracting data from Outlook to put into another program. I wrote a
program in VB6 to do it because we use a custom form for public contact
data
and it has over 600+ custom fields in it. On 2 contacts, I'm getting an
Enable/Disable macros dialog but I can't determine why? Where are all of
the
possible places I can look? The form itself does have some code behind it
but this only happens on 2 contacts out of 4000. I also think these 2
contacts are ones that I've gone into and with "Design this form" and
looked
at the All Fields data and closed without saving any changes. I can post
my
code if that seems relevant.

Any help appreciated

Matt





Matt Williamson May 4th 07 04:28 PM

Enable/Disable Macros when walking public folders in loop
 
The MessageClass for those 2 is IPM.Contact whereas for all of the other's
it's IPM.Contact.Contact Manager which is the custom form in the Org Forms
Library. I'm not seeing where I can change it for just these individual
contacts though. Any insight?


I used OutlookSpy to change them and the Messagebox doesn't pop up any
longer.




All times are GMT +1. The time now is 11:39 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com