![]() |
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
|
|||
|
|||
![]()
Hi all, and sorry for my english
I'm looking how to remove a addresslist in outlook using VB I want to remove all entry or one entry without using the folder object and set the ShowAsOutlookAB=False because some time when the folder contact is corrupt the entry stay in the adresslists Thanks All for your help Here my code Sub Main() ' Create an Outlook application. Dim oApp As Outlook.Application Set oApp = New Outlook.Application ' Get the MAPI namespace. Dim oNS As Outlook.NameSpace Set oNS = oApp.Session ' Get the AddressLists collection. Dim oALs As Outlook.AddressLists Set oALs = oNS.AddressLists MsgBox (oALs.Count) ' Loop through the AddressLists collection. Dim i As Integer Dim oAL As Outlook.AddressList For i = 1 To oALs.Count Set oAL = oALs.Item(i) ' '! Here : how to do oAl.remove ? ' Next i End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Addresslist disapperaed after moving to new machine | Scanhok | Outlook - Using Contacts | 1 | February 4th 07 10:50 AM |
change the first addresslist | Clemens | Outlook - Installation | 1 | May 1st 06 02:43 PM |
How to search the AddressList? | Smitha Nataraj | Outlook - Using Forms | 0 | January 18th 06 04:51 AM |
How to search the AddressList for a specific address entry? | Smitha Nataraj | Outlook - General Queries | 0 | January 18th 06 04:47 AM |
How to search in the AddressList? | Smitha Nataraj | Add-ins for Outlook | 0 | January 18th 06 04:46 AM |