+ Reply to Thread
Results 1 to 3 of 3

Add to rule macro that exports Body, date/time sent, and sender into excel spreadsheet.

  1. #1
    Forum Contributor vamosj's Avatar
    Join Date
    04-23-2004
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    294

    Add to rule macro that exports Body, date/time sent, and sender into excel spreadsheet.

    I have a rule setup to move emails based on subject line. What I am attempting to do is when this rule is triggered, it also grabs the Body, Sent Date, and Sender and places it into an Excel Spreadsheet. After doing a bit of research I have come up with the following and the issue i'm having is getting the Msg Object set properly so I can pull the data from the email. Anyone able to assist?

    So far I have come up with the following. Trying to have this happen when a rule activates. Will continue to work on this if anyone has any ideas that will help me out. Right now the main issue is getting Msg identified.


    Please Login or Register  to view this content.
    Xpost here
    Last edited by vamosj; 01-20-2015 at 04:22 PM. Reason: Added Xpost
    Janos S. Vamos
    Data Systems Technician/Fire Controlman PO1(SW/AW)
    US Navy Retired


    Remember, Record Macro can be your friend for figuring out solutions.

    Good or Bad, let me know how I did by clicking on the "Add Reputation" * just to the lower left of here. it only takes a few seconds to let someone know.

  2. #2
    Forum Contributor vamosj's Avatar
    Join Date
    04-23-2004
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    294

    Re: Add to rule macro that exports Body, date/time sent, and sender into excel spreadsheet

    **** Adding to OP to make this a little easier to read ***
    Last edited by vamosj; 01-20-2015 at 04:23 PM.

  3. #3
    Forum Contributor vamosj's Avatar
    Join Date
    04-23-2004
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    294

    Re: Add to rule macro that exports Body, date/time sent, and sender into excel spreadsheet

    And figured out the issue. Code is posted below for anyone else in the future who may want to do the same thing. The problem I had was sine I was trying to troubleshoot it without it being triggered by a rule there was no MailItem attached to a specific email. When it was triggered I no longer needed to set the "Msg" object as "MyMail" was now linked with the incoming email that triggered the rule.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Download Atatchment based on sender and time received
    By tanvo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-07-2014, 09:51 AM
  2. Replies: 4
    Last Post: 12-24-2012, 12:21 PM
  3. MAINTAIN EXCEL spreadsheet in e-mail body across servers, etc....?
    By synses in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-07-2012, 05:59 PM
  4. COPY outlook mails subject, received date, sender details in excel
    By Ratnakar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-27-2012, 10:14 AM
  5. Code to insert time/date into body of task
    By Mallycat in forum Outlook Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2012, 08:36 PM

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