Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Delete one contacts folder specify and import (http://www.outlookbanter.com/outlook-vba/22761-delete-one-contacts-folder-specify.html)

Julio Carvajal August 3rd 06 05:59 PM

Delete one contacts folder specify and import
 
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



Michael Bauer [MVP - Outlook] August 4th 06 06:54 AM

Delete one contacts folder specify and import
 
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.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


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


Julio Carvajal August 13th 06 11:00 PM

Delete one contacts folder specify and import
 
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

"Michael Bauer [MVP - Outlook]" escribió en el mensaje
...
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.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


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




Michael Bauer [MVP - Outlook] August 14th 06 05:49 AM

Delete one contacts folder specify and import
 
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(olFold erInbox)

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

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


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

"Michael Bauer [MVP - Outlook]" escribi񟤮 el mensaje
...
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.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


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



All times are GMT +1. The time now is 06:34 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com