Delete one contacts folder specify and import

  • Thread starter Thread starter Julio Carvajal
  • Start date Start date
J

Julio Carvajal

Somebody have some idea, code or macro for delete one contact folder specify
and
after import the same contact folder of one contact folder outer or pst.
Thanks
 
Am Thu, 3 Aug 2006 10:59:22 -0600 schrieb Julio Carvajal:

You could call the Pickfolder function and let the user select the folder to
delete. If it returns a Mapifolder object then call its Delete method.
 
Ok, but I not like what user choose the folder, I need it automatic. And,
who method is necesary for import un folder of other .pst?
Thanks
 
Am Sun, 13 Aug 2006 16:00:36 -0600 schrieb Julio Carvajal:

Ok, so you need to know which folder should be deleted. Do you know the
folder´s name? you could also call e.g.:

' get the Inbox
Dim Folder as Outlook.Mapifolder
Set Folder=Application.Session.GetDefaultFolder(olFolderInbox)

' get a named subfolder of the Inbox
Set Folder=Folder.Folders("name")

' delete that subfolder
Folder.Delete

To import a folder of another PST first add that PST with AddStore. Then
again, you need a reference to that folder. If it´s not the default contact
folder then you need probably it´s name.

Please see also the sample for the CopyTo function in the VBA help.
 
Back
Top