![]() |
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. |
|
|
Thread Tools | Search this Thread | 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 | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 04:46 PM |
Standard Forms Library | Jeb | Outlook - Using Forms | 3 | March 8th 06 04:13 PM |
Renaming standard Views | glen | Outlook - Calandaring | 1 | February 16th 06 07:08 PM |
Reverting To Standard Forms | Jonathan Wareham | Outlook - Using Forms | 0 | February 8th 06 09:30 AM |
Can't reload Office 2000 standard | CindyJ | Outlook - Installation | 0 | February 1st 06 01:29 PM |