+ Reply to Thread
Results 1 to 1 of 1

Save emails sent on behalf of another mailbox in correct sent items folder

  1. #1
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Save emails sent on behalf of another mailbox in correct sent items folder

    Not a question, just something I've put together to solve an issue we've had at work which I thought I'd share.

    I have multiple mailboxes on my Outlook account and am able to send items either from myself or on behalf of any of them. The problem was that all sent items were being stored in my sent items not the ones relating to the other mailboxes. This made keeping an audit trail difficult and meant I had to manually remember to copy the items I'd sent on behalf of another mailbox into the correct folder which was a pain.

    The following code checks if an email has been sent on behalf of another mailbox and if so moves it into the correct one. All our mailboxes are called "Mailbox - mailbox name" which I'm not sure if is standard as I'm pretty new to using Outlook. The code would need amending if your mailboxes are differently named.

    The code needs to be placed on the ThisOutlookSession of your Outlook VBA Project.

    I'm new to coding in Outlook and not an expert so there may be issues I've not picked up.

    Hope it helps someone anyway.

    Dom

    Please Login or Register  to view this content.

    Edits:

    Changed code to use Application_MAPILogonComplete rather than Application_Startup as it can be a bit flaky
    Also realised it was moving all sent mail to the correct Sent Mail folder so updated to avoid processing mail sent from the default mailbox.
    Last edited by Domski; 04-09-2010 at 08:31 AM. Reason: Noticed small error
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

+ 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