D
daxriders
Hi...
i've been trying to delete all my outlook contacts to update them with a DB.
The problem is that there are always some contacts left?!?
Anyone knows why and how to solve this issue?
here's my code(vb.net)
Dim olApp As New Outlook.Application
Dim olNamespace As Outlook.NameSpace = olApp.GetNamespace("MAPI")
Dim olFolder As Outlook.MAPIFolder =
olNamespace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts)
'Do While olFolder.Items.Count > 0 this option doesnt work either
For Each olItem As Outlook.ContactItem In olFolder.Items
olItem.Delete()
Next
'Loop
i've been trying to delete all my outlook contacts to update them with a DB.
The problem is that there are always some contacts left?!?
Anyone knows why and how to solve this issue?
here's my code(vb.net)
Dim olApp As New Outlook.Application
Dim olNamespace As Outlook.NameSpace = olApp.GetNamespace("MAPI")
Dim olFolder As Outlook.MAPIFolder =
olNamespace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts)
'Do While olFolder.Items.Count > 0 this option doesnt work either
For Each olItem As Outlook.ContactItem In olFolder.Items
olItem.Delete()
Next
'Loop