A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Saving Subject Text in Excel Doc



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 15th 06, 02:00 PM posted to microsoft.public.outlook.program_vba
bbkixx
external usenet poster
 
Posts: 1
Default Saving Subject Text in Excel Doc

Hello-

Is there a way to automagically save the subject field from emails sent to a
defined email address into an excel doc? Any help would be greatly
appreciated.

Thank you,
bbkixx
  #2  
Old June 15th 06, 05:09 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Saving Subject Text in Excel Doc

To start, review my blog article to wire up your plumbing:

Getting a Handle on Your E-mails with VBA:
http://blogs.officezealot.com/legaul...cles/2224.aspx

Once you've done that, you'll be able to hook into the objMailItem_Send
event, which is where you'll want to grab the objMailItem.Subject property
value if any of the address in the objMailItem.Recipients collection matches
what you are looking for.

Then use some other code similar to this to open an Excel file:

Dim objExcel As Object

Set objExcel = CreateObject("Excel.Application")
objExcel.Workbooks.Open "C:\Temp\Book1.xls"

Check the Excel VBA documentation for further examples on writing to cells.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"bbkixx" wrote:

Hello-

Is there a way to automagically save the subject field from emails sent to a
defined email address into an excel doc? Any help would be greatly
appreciated.

Thank you,
bbkixx

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving the Categories in Contacts when Exporting to Excel Debbie Outlook - Using Contacts 1 June 14th 06 03:56 AM
Outlook 2003 calendar not displaying text in subject line Ronnie Outlook - Calandaring 1 April 21st 06 10:33 AM
sending rtf,doc,text as message body in outllook 2003 in vb.net Digit Solver Outlook - Using Forms 3 March 31st 06 03:37 PM
how do I show the subject but hide the text of a meeting ? debbied Outlook - Calandaring 0 February 7th 06 03:07 PM
Problems saving text in a text box Dave Haymes Outlook - Using Contacts 1 February 7th 06 12:58 PM


All times are GMT +1. The time now is 10:39 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.