A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Delete one contacts folder specify and import



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 3rd 06, 05:59 PM posted to microsoft.public.outlook.program_vba
Julio Carvajal
external usenet poster
 
Posts: 7
Default 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


Ads
  #2  
Old August 4th 06, 06:54 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default 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

  #3  
Old August 13th 06, 11:00 PM posted to microsoft.public.outlook.program_vba
Julio Carvajal
external usenet poster
 
Posts: 7
Default 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



  #4  
Old August 14th 06, 05:49 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default 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

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I delete a duplicate empty Contacts folder Bob Outlook - Using Contacts 1 July 10th 06 04:10 PM
Import/Export a pst CONTACTS folder GSharpe Outlook - Using Contacts 3 June 29th 06 11:07 PM
How can I delete a duplicate contacts folder Jeet66 Outlook - Using Contacts 3 April 25th 06 10:38 AM
"Unable to Display the Folder" msg, can't delete folder Yvonne Outlook - Calandaring 2 March 29th 06 08:01 PM
Junk E-mail folder - is there a way to create a rule to delete items in this folder older than X days? Jaycee Outlook - General Queries 1 February 22nd 06 04:54 PM


All times are GMT +1. The time now is 05:44 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-2025 Outlook Banter.
The comments are property of their posters.