![]() |
| 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. |
|
|||||||
| Tags: excel, export, figure, msg, outlook |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I'd like to be able to use a macro in Outlook 2003 to find "Total sales" in
the current mail item and export the result to A1 in an Excel spreadsheet. I think it's possible, but I don't know how to do it. The following day I would run the macro again and export the result to A2 in the same spreadsheet. If anyone can assist at all, I'll be very grateful indeed. |
| Ads |
|
#2
|
|||
|
|||
|
You can search strings in the mail with the Instr function, and extract them e.g. with Left, Right, and Mid. Add a reference to Excel to your Outlook project via Tools/References. This opens a workbook: Dim xl As Excel.Application dim wb as Excel.Workbook Dim ws as Excel.Worksheet Dim rn as Excel.Range Set xl=new Excel.Application Set wb=xl.Workbooks.Open("file") Set ws=wb.sheets(1) Set rn=ws.Range("A1") rn.Value = "hello" -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook Quick-Cats - Categorize Outlook data: http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6 Am Sat, 21 Apr 2007 16:29:14 +1000 schrieb Max Bialystock: I'd like to be able to use a macro in Outlook 2003 to find "Total sales" in the current mail item and export the result to A1 in an Excel spreadsheet. I think it's possible, but I don't know how to do it. The following day I would run the macro again and export the result to A2 in the same spreadsheet. If anyone can assist at all, I'll be very grateful indeed. |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to export Outlook Calendar to Excel | Hally | Outlook - Calandaring | 1 | April 5th 07 05:49 AM |
| Why can't I export outlook contacts to Excel/Access, etc? | Pat | Outlook - Using Contacts | 2 | January 17th 07 12:04 AM |
| Figure out a way to synchronize Outlook folders on a home network | susjs | Outlook - Installation | 3 | August 23rd 06 05:57 PM |
| Export DL members to Excel CSV with Outlook VBA | mac7attack@gmail.com | Outlook and VBA | 0 | March 17th 06 09:04 PM |
| Export Excel to Outlook Contacts | Kerri | Outlook - Using Contacts | 1 | March 8th 06 09:43 PM |