Consulting

Results 1 to 2 of 2

Thread: copying all mails except draft and sent items

  1. #1
    VBAX Regular
    Joined
    Mar 2010
    Posts
    15
    Location

    copying all mails except draft and sent items

    Hi Friends,

    I used the code available in this site to copy all the pst file local hard disk.

    This code is available in this forum but I am unable give it here.

    Add the following line to vbaexpress site address
    /kb/getarticle.php?kb_id=875


    The code is copying all the folders. I needs to be copied all the folders except Drafts and sent Items.

    Please kindly tell the way how to omit sent and draft folders or modify the above code as per my requirement.

    Highlight the modified code and send it to me.

    Thanks & Regards
    Ramesh

  2. #2
    VBAX Expert JP2112's Avatar
    Joined
    Oct 2008
    Location
    Astoria, NY
    Posts
    590
    Location
    In the For loop, check Folder.Name to see if it matches "Drafts" or "Sent Items" and act accordingly.


    Quote Originally Posted by ramserp
    Hi Friends,

    I used the code available in this site to copy all the pst file local hard disk.

    This code is available in this forum but I am unable give it here.

    Add the following line to vbaexpress site address
    /kb/getarticle.php?kb_id=875


    The code is copying all the folders. I needs to be copied all the folders except Drafts and sent Items.

    Please kindly tell the way how to omit sent and draft folders or modify the above code as per my requirement.

    Highlight the modified code and send it to me.

    Thanks & Regards
    Ramesh
    Regards,
    JP

    Read the FAQ
    Getting free help on the web
    My website
    Please use [vba][/vba] tags when posting code

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •