Extract Subject,Sent From, Message from mailbox to Excel

Status
Not open for further replies.
Hi All,




First of all am not sure if this is the right forum for this posting and as a programmer I thought maybe programmatically my issue might be resolved hence the posting.




Here is the requirement. We would like to either create/add a add-in that will extract the following information from a mailbox - Sent From, Subject, Date, Message. and put it in a excel sheet by taking the given date as the parameter and displaying the required attributes for the last two days from the given date.




In one of our appilcations recently upgraded we have serveral SQL Server Jobs running and sending out mails from a mailbox server. These mails are composed of a particular format i.e.


1. Subject line -Interface execution Report - <Interface Name>


2. Message - <Interface Name> has been successful. Attached is the message, or


(in case of failure) <Interface Name> has failed. Please contact system administrator.




Now the problem here is the system is desiged such a way that for both the scenarios it sends out the mail with the subject line and the message may vary. And it is upon us to manually open the message and check for the cause of failure. Now in order to avoid this we are looking at having a program/add-in that when run for the given day gives us the pertinet details in the excel sheet for the span of 2 days to know the working of the interfaces.




Is there a better way of handling this issue? Please let us know. And the outlook version is Outlook Office 2003. Also I would like to mention that doing code change is really out of question as the client doesnt' want any changes to be done through code currently.




Thanks in Advance.




Regards,


Karthik
 
What is your question?

Best regards

Michael Bauer

Am Mon, 20 Jul 2009 09:12:14 -0400 schrieb vkarthik21:


> Hi All,

> First of all am not sure if this is the right forum for this posting
> and as a programmer I thought maybe programmatically my issue might be
> resolved hence the posting.

> Here is the requirement. We would like to either create/add a add-in
> that will extract the following information from a mailbox - Sent From,
> Subject, Date, Message. and put it in a excel sheet by taking the given
> date as the parameter and displaying the required attributes for the
> last two days from the given date.

> In one of our appilcations recently upgraded we have serveral SQL
> Server Jobs running and sending out mails from a mailbox server. These
> mails are composed of a particular format i.e.
> 1. Subject line -Interface execution Report - <Interface Name
> 2. Message - <Interface Name> has been successful. Attached is the
> message, or
> (in case of failure) <Interface Name> has failed. Please contact system
> administrator.

> Now the problem here is the system is desiged such a way that for both
> the scenarios it sends out the mail with the subject line and the
> message may vary. And it is upon us to manually open the message and
> check for the cause of failure. Now in order to avoid this we are
> looking at having a program/add-in that when run for the given day gives
> us the pertinet details in the excel sheet for the span of 2 days to
> know the working of the interfaces.

> Is there a better way of handling this issue? Please let us know. And
> the outlook version is Outlook Office 2003. Also I would like to mention
> that doing code change is really out of question as the client doesnt'
> want any changes to be done through code currently.

> Thanks in Advance.

> Regards,
> Karthik
 
Hi Michael,




How do we extract the following information from a mailbox - Sent From,
Subject, Date, Message. and put it in a excel sheet by taking the given
date as the parameter and displaying the required attributes for the
last two days from the given date




Regards,


Karthik


What is your question?




--


Best regards


Michael Bauer














Am Mon, 20 Jul 2009 09:12:14 -0400 schrieb vkarthik21:




> Hi All,

>

> First of all am not sure if this is the right forum for this posting

> and as a programmer I thought maybe programmatically my issue might be

> resolved hence the posting.

>

> Here is the requirement. We would like to either create/add a add-in

> that will extract the following information from a mailbox - Sent From,

> Subject, Date, Message. and put it in a excel sheet by taking the given

> date as the parameter and displaying the required attributes for the

> last two days from the given date.

>

> In one of our appilcations recently upgraded we have serveral SQL

> Server Jobs running and sending out mails from a mailbox server. These

> mails are composed of a particular format i.e.

> 1. Subject line -Interface execution Report - <Interface Name>

> 2. Message - <Interface Name> has been successful. Attached is the

> message, or

> (in case of failure) <Interface Name> has failed. Please contact system

> administrator.

>

> Now the problem here is the system is desiged such a way that for both

> the scenarios it sends out the mail with the subject line and the

> message may vary. And it is upon us to manually open the message and

> check for the cause of failure. Now in order to avoid this we are

> looking at having a program/add-in that when run for the given day gives

> us the pertinet details in the excel sheet for the span of 2 days to

> know the working of the interfaces.

>

> Is there a better way of handling this issue? Please let us know. And

> the outlook version is Outlook Office 2003. Also I would like to mention

> that doing code change is really out of question as the client doesnt'

> want any changes to be done through code currently.

>

> Thanks in Advance.

>

> Regards,

> Karthik
 
I still don't understand you. However, maybe you want to read data from one

selected email: You can access the MailItem via the ActiveExplorer.Selection

collection.

Please see the object browser (f2) for all the available properties exposed

by the MailItem object: Switch from <All Libraries> to Outlook, then select

MailItem in the left pane.

For working with Excel files, you can add the Excel library to your Outlook

project via Tools/References. Now you can also use the object browser to see

what objects and methods are exposed by Excel: For opening a workbook use

the Workbooks.Open function. And the Range object is used to access a cell

in the workbook and read/write its content (Value property).

Best regards

Michael Bauer

Am Thu, 23 Jul 2009 12:22:22 -0400 schrieb vkarthik21:


> Hi Michael,

> How do we extract the following information from a mailbox - Sent
> From,
> Subject, Date, Message. and put it in a excel sheet by taking the
> given
> date as the parameter and displaying the required attributes for the
> last two days from the given date

> Regards,
> Karthik
> 'Michael Bauer [MVP - Outlook Wrote:
> > ;53248']What is your question?
>

>> > > Best regards
> > Michael Bauer
>

>>>>>
>
>
>> Am Mon, 20 Jul 2009 09:12:14 -0400 schrieb vkarthik21:
> >
> >> Hi All,
> >
>>> First of all am not sure if this is the right forum for this posting
> >> and as a programmer I thought maybe programmatically my issue might

> > be
> >> resolved hence the posting.
> >
>>> Here is the requirement. We would like to either create/add a add-in
> >> that will extract the following information from a mailbox - Sent

> > From,
> >> Subject, Date, Message. and put it in a excel sheet by taking the

> > given
> >> date as the parameter and displaying the required attributes for the
> >> last two days from the given date.
> >
>>> In one of our appilcations recently upgraded we have serveral SQL
> >> Server Jobs running and sending out mails from a mailbox server.

> > These
> >> mails are composed of a particular format i.e.
> >> 1. Subject line -Interface execution Report - <Interface Name
>>> 2. Message - <Interface Name> has been successful. Attached is the
> >> message, or
> >> (in case of failure) <Interface Name> has failed. Please contact

> > system
> >> administrator.
> >
>>> Now the problem here is the system is desiged such a way that for

> > both
> >> the scenarios it sends out the mail with the subject line and the
> >> message may vary. And it is upon us to manually open the message and
> >> check for the cause of failure. Now in order to avoid this we are
> >> looking at having a program/add-in that when run for the given day

> > gives
> >> us the pertinet details in the excel sheet for the span of 2 days to
> >> know the working of the interfaces.
> >
>>> Is there a better way of handling this issue? Please let us know.

> > And
> >> the outlook version is Outlook Office 2003. Also I would like to

> > mention
> >> that doing code change is really out of question as the client

> > doesnt'
> >> want any changes to be done through code currently.
> >
>>> Thanks in Advance.
> >
>>> Regards,
> >> Karthik
 
You might find useful this article, which explains how to search over a date

range: http://www.outlookcode.com/article.aspx?id=30

Sue Mosher

Am Thu, 23 Jul 2009 12:22:22 -0400 schrieb vkarthik21:
>
> > Hi Michael,
>

>> How do we extract the following information from a mailbox - Sent
> > From,
> > Subject, Date, Message. and put it in a excel sheet by taking the
> > given
> > date as the parameter and displaying the required attributes for the
> > last two days from the given date
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
D ISOmacro to extract active mail senders name and email, CC, Subject line, and filename of attachments and import them into premade excel spread sheet Outlook VBA and Custom Forms 2
C Macro to extract sender name & subject line of incoming emails to single txt file Outlook VBA and Custom Forms 3
R Trying to extract information between two symbols from outlook subject Using Outlook 2
D Need to extract a line from a word attachment, and add it to the subject line Outlook VBA and Custom Forms 3
C Wishlist Extract or scan new email addresses from out of office replies. Leads from OOO replies Using Outlook 1
M Extract "Date sent" from emails (saved to folder using drag and drop) Outlook VBA and Custom Forms 1
T vba extract data from msg file as attachment file of mail message Outlook VBA and Custom Forms 1
S Unable to extract text from an Outlook email message Using Outlook 2
S Macro to extract and modify links from emails Outlook VBA and Custom Forms 3
S Macro to extract email addresses of recipients in current drafted email and put into clipboard Outlook VBA and Custom Forms 2
N Extract Outlook emails to excel Outlook VBA and Custom Forms 2
M Extract all links from Outlook email, send to Excel Using Outlook 2
T Extract Data From Outlook Tasks Using Outlook 0
T Extract Data From Outlook Tasks Using Outlook 0
V extract users of a particular department Outlook VBA and Custom Forms 1
J Outlook 2013 Extract Flag Completed dates to Excel Macro Outlook VBA and Custom Forms 16
S How to extract mail items from multiple folders and shared mailboxes? Outlook VBA and Custom Forms 0
K Extract email address from body and auto-reply outlook Using Outlook 1
K Extract email to excel from a specific sender Outlook VBA and Custom Forms 3
O VBA to extract email (fields and body) to Excel Outlook VBA and Custom Forms 14
P Recover / Extract Rules from standalone PST file creating RWZ file Using Outlook 2
B Extract Dates for Appointment Item in Body of email Outlook VBA and Custom Forms 10
E Extract excel files from outlook Outlook VBA and Custom Forms 2
K extract certain text from an Outlook Email Message Outlook VBA and Custom Forms 2
D VBA Script to extract text matching specific criteria Outlook VBA and Custom Forms 1
M Extract text in existing message body for use in newmail items Using Outlook 17
M HELP--Extract Data from 2003 outlook transfer to excel spreadsheet Using Outlook 1
M VBA Code to extract data from an Outlook Form Using Outlook 0
M Extract attachments with a script Using Outlook 0
M HELP - Can't open outlook... How can I extract my Emails that I had in folders Using Outlook 3
H Extract emails from Outlokk 2007 email body Using Outlook 0
K Extract Global Address List Using Outlook 1
R Saving Outlook Email As Text File Extract Outlook VBA and Custom Forms 2
N Programming to extract automatically extract attachments Outlook VBA and Custom Forms 3
S How to extract outlook calendar data. Outlook VBA and Custom Forms 3
? outlook attachment Extract File ??? Outlook VBA and Custom Forms 1
N How to extract date and time stamp from messsages Outlook VBA and Custom Forms 6
S Automatically extract attachments? Outlook VBA and Custom Forms 1
I How to extract email addresses from TO or CC line of a particular email Outlook VBA and Custom Forms 2
H using VBA to edit subject line Outlook VBA and Custom Forms 0
F Auto changing email subject line in bulk Using Outlook 2
M Outlook Macro to save as Email with a file name format : Date_Timestamp_Sender initial_Email subject Outlook VBA and Custom Forms 0
J Outlook 365 Forward Email Subject to my inbox when new email arrive in shared inbox Using Outlook 0
sjmo2 Change subject for new e-mails only. Outlook VBA and Custom Forms 2
C Outlook 365 Copy/Save Emails in Folder Outside Outlook to Show Date Sender Recipient Subject in Header Using Outlook 0
D Prompt to prefix subject line whenever sending an email Outlook VBA and Custom Forms 3
ill13 Prepend the user's computer name to the subject. Outlook VBA and Custom Forms 1
D Auto Remove [EXTERNAL] from subject - Issue with Macro Using Outlook 21
2 How to get rid of the "Emailing:" prefix in the subject line Using Outlook 1
S Outlook Macro for [Date][Subject] Using Outlook 1

Similar threads

Back
Top