![]() |
| 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: reply, standard |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I'm use to recording macros in Word, but don't know VB. After I've clicked
'Reply' to an e-mail, I would like a macro to insert a specific file as text. At the moment, I have to click in turn Insert, File, then indicate the file, then click Insert as Text. I'd be very gratefule for help. |
| Ads |
|
#2
|
|||
|
|||
|
Am Mon, 19 Jun 2006 09:17:02 -0700 schrieb Myint Su:
You can start with this: Public ReplyWithTemplate() Dim Reply As Outlook.MailItem If Application.ActiveExplorer.Selection.Count Then Set Reply = Application.ActiveExplorer.Selection(1).Reply Reply.Body = GetTemplate & Reply.Body Reply.Send Endif End Sub Private Function GetTemplate() As String .... End Sub Please complete the sample yourself and write code into the function GetTemplate. For reading a file´s content you could use e.g. the "Microsoft Scripting Runtime" library, which you then need to set a reference on via Tools/References. If you are ready you can add a button to your toolbar that starts the public method. Use that button instead of Outlook´s Reply button. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook -- www.VBOffice.net -- I'm use to recording macros in Word, but don't know VB. After I've clicked 'Reply' to an e-mail, I would like a macro to insert a specific file as text. At the moment, I have to click in turn Insert, File, then indicate the file, then click Insert as Text. I'd be very gratefule for help. |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Outlook 2003 does not reply with original reply headers indented | Sriram | Outlook - General Queries | 0 | May 17th 06 05:46 PM |
| Standard Forms Library | Jeb | Outlook - Using Forms | 3 | March 8th 06 05:13 PM |
| Renaming standard Views | glen | Outlook - Calandaring | 1 | February 16th 06 08:08 PM |
| Reverting To Standard Forms | Jonathan Wareham | Outlook - Using Forms | 0 | February 8th 06 10:30 AM |
| Can't reload Office 2000 standard | CindyJ | Outlook - Installation | 0 | February 1st 06 02:29 PM |