+ Reply to Thread
Results 1 to 8 of 8

Copying all the emails from Outlook inbox plus subfolders to excel

Hybrid View

  1. #1
    Valued Forum Contributor mohd9876's Avatar
    Join Date
    05-04-2011
    Location
    Amman, Jordan
    MS-Off Ver
    Excel 2010
    Posts
    426

    Re: Copying all the emails from Outlook inbox plus subfolders to excel

    If you want to exclude items from the export you specify them like this:
    .
    .
    .
    For Each fld In nms.Folders(1).Folders
         IF fld.Name = "Deleted Items" OR fld.Name =  "Sent Items" OR fld.Name =  "Whatever" Then
                goto 1:
         end if
    .
    .
    .
    .

  2. #2
    Registered User
    Join Date
    09-04-2011
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007/2010
    Posts
    6

    Re: Copying all the emails from Outlook inbox plus subfolders to excel

    Well this is interesting... It is not looking for subfolders under the main Inbox folder. So its picking up all the emails from Inbox and sent emails, deleted emails etc.. but not subfolders under Inbox.
    And yea I tried excluding the Inbox folder and deleted all the emails from sent and deleted folder except for subfolders. And Im getting an error as "No email items found"

    What do u reckon the problem is??

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1