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 - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

writing my first Macro



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old January 9th 09, 06:33 AM posted to microsoft.public.outlook
bluedolphin
external usenet poster
 
Posts: 6
Default writing my first Macro

Hello, I am trying to write a macro for the first time in
OUTLOOK 2000. I find this will help me cause I don't get
around very well. But am having trouble to write one in the VBA.

Can you show me how to simply write a few sentences that I can
"automatically" include in an email reply to someone. Or if you
can send me just a very simple sample or example of a macro
that has a small paragraph email. that would be great.

I have been looking on "google for hours" now, and all I could find
was this sample below, but all it does is put in the "subject line"
automtically. What I would like to do is add a few sentences automatically
in the "BODY" of the message. Can you please help. here is a small
sample I found, but I really do not understand it very much. can you
help me edit this "sample" so that it will include a small message
in the "body" of the message. Thankyou so much. Ric
If you can guide me step by step that would be great, I'm a complete
beginner when it comes to VBA and Macros, I am using Outlook 2000.

Sub HelloWorldMessage()
Dim msg As Outlook.MailItem
Set msg = Application.CreateItem(olMailItem)
msg.Subject = "Hello World!"
msg.Display
Set msg = Nothing

End Sub



 




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
Writing a macro Pete Outlook and VBA 1 July 25th 07 11:34 PM
Writing a macro in Outlook 2007 Tammy Outlook - General Queries 2 May 8th 07 04:47 PM
Outlook macro abends but Word macro runs successfully Jreue Outlook and VBA 0 December 14th 06 12:55 AM
Call macro stored in Excel workbook from Outlook's macro Gvaram Outlook and VBA 5 October 4th 06 07:26 AM
writing a macro to throw emails that contain pictures to trash windows314 Outlook and VBA 1 April 30th 06 10:12 AM


All times are GMT +1. The time now is 08:52 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.