![]() |
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 |
#1
|
|||
|
|||
![]()
Hello out there,
my first VB6-add-in for Outlook 2003 does not work on all machines. If other add-ins are loaded, it sometimes failes with an error "Client process could not be completed". The error occurs when in AddinInstance_OnConnection my add-in looks for a certain folder. Dim oStores As Outlook.Folders Dim oFolder As Outlook.MAPIFolder Dim oSubFolder As Outlook.MAPIFolder Dim sMyEntryID As String Set oStores = oMyOLNameSpace.Folders For Each oFolder In oStores For Each oSubFolder In oFolder.Folders If oSubFolder.Name = "NeedThis" Then sMyEntryID = oSubFolder.EntryID End If Next oSubFolder Next oFolder Is there anything wrong with looping through Outlook folders in AddinInstance_OnConnection? Is this bad practice? Thanks for your advice! Jochen |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Enable/Disable Macros when walking public folders in loop | Matt Williamson | Outlook and VBA | 3 | May 4th 07 03:28 PM |
Outlook 2002 Test Message In Loop | Jon | Outlook - General Queries | 1 | July 21st 06 11:45 PM |
Loop through all folders in a mailbox | Bob Smith | Outlook and VBA | 4 | May 25th 06 11:23 PM |
Hide/Delete Deleted Items & Search Folders Folders in Outlook 2003 | jpspringall | Outlook and VBA | 1 | April 24th 06 02:51 PM |
How to loop through Outlook tasks in VBA | Rick Williams | Outlook and VBA | 2 | January 25th 06 07:59 PM |