to and subject lines

  • Thread starter Thread starter gm
  • Start date Start date
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
 
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
 
Can you have the body call on a proceedure, such as
getting the data from an input box?

Thanks
 
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
 
Back
Top