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

Standard reply



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 19th 06, 05:17 PM posted to microsoft.public.outlook.program_vba
Myint Su
external usenet poster
 
Posts: 1
Default Standard reply

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  
Old June 20th 06, 05:23 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default Standard reply

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
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
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


All times are GMT +1. The time now is 04:02 PM.


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.