writing my first Macro

B

bluedolphin

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
 
M

Milly Staples [MVP - Outlook]

http://www.outlookcode.com - look around for samples there.

--
Milly Staples [MVP - Outlook]

Post all replies to the group to keep the discussion intact.
ALWAYS post your Outlook version.
How to ask a question: http://support.microsoft.com/KB/555375


After furious head scratching, bluedolphin asked:

| 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top