to and subject lines

G

gm

How do you fill in the to field and subject line.
I want to fill in both of these fields and then populate
the body with text.

eg

[email protected]
Subject = TEST Meeting
Body = Test txt in body

Thanks
GM
 
S

Sue Mosher [MVP-Outlook]

You code needs to reference the MailItem (or other) object whose properties
you want to change, and all text strings must be in quotation marks:

With objMailItem
.to="(e-mail address removed)"
.Subject = "TEST Meeting"
.Body = "Test txt in body"
End With

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



How do you fill in the to field and subject line.
I want to fill in both of these fields and then populate
the body with text.

eg

[email protected]
Subject = TEST Meeting
Body = Test txt in body

Thanks
GM
 
G

gm

Can you have the body call on a proceedure, such as
getting the data from an input box?

Thanks
 
S

Sue Mosher [MVP-Outlook]

Sure:

strRes = InputBox("tell me what to put in the body")
objMailItem.Body = strRes
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Can you have the body call on a proceedure, such as
getting the data from an input box?

Thanks
 

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