Re: delete a folder from my contacts in Outlook VBA

Tech-Archive recommends: Speed Up your PC by fixing your registry



So, what happens if you show an Explorer and perform the operation, then close it?

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


"Sean" <Sean@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:FCE7F8E5-5171-42FF-85DA-03E7E836A941@xxxxxxxxxxxxxxxx
> Thanks for looking at this. I re-posted a fuller description of the problem
> in a reponse to Eric's post.
>
> When I tried what you suggested I errored out. This is because I don't have
> an exlporer active at the time that I run the code in Access.
>
> Sean
>
> "Sue Mosher [MVP-Outlook]" wrote:
>
>> There is an Explorer.DeselectFolder method. See http://msdn.microsoft.com/library/en-us/vbaol11/html/olmthDeselectFolder1...asp

>>
>> "Sean" <Sean@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:D9F06893-397A-4B77-BB0E-B529575DEB1F@xxxxxxxxxxxxxxxx
>> >I am using VBA to create and delete folders in the default contact folder.
>> > This seems to be working fine - the new folder is always created and the
>> > items that I generate are included in the new folder.
>> >
>> > The problem is that when I go into the Contacts folder in Outlook Explorer I
>> > still see the old folder in My Contacts. When I click on the old entry
>> > Explorer says that the folder has been deleted. So how do I remove the
>> > reference to this folder from My Contacts.
>> >
>> > The old folder also persists in the list of folders to be used as an address
>> > book.
>>
.



Relevant Pages