View Single Post
  #6  
Old July 1st 08, 05:56 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Create a Macro in Outlook

Just as the + operator is used to add two numbers together, the & operator is
used to join two strings together:

ReplyMail.Subject = "#ms#" & ReplyMail.Subject

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"Bert" wrote:

I am new to this I am stumped at the following:

Sub ms()
ReplyMail.Subject = "#ms#"(remainder of the subject)
End Sub

Thanks for your assistance.

"Sue Mosher [MVP-Outlook]" wrote:

Though no macro recorder is available (and the same is true for most Office programs), there is a huge amount of Outlook sample code available, included that in the Help system itself. Where in particular are you stumped?



"Bert" wrote in message ...
I'm having problems with the Outllok Codes, since Outlooks does not record
macros. The #ms# would follow the standard prefix.

"Sue Mosher [MVP-Outlook]" wrote:

Where are you encountering problems? Exactly how do you want the Subject line to look -- does #ms# replace, precede, or follow the standard prefix?

"Bert" wrote in message ...
Hello. I am having a challenging time creating a macro in Outlook. I'm
trying to create a macro when replying to an email, in the Subject line will
automatically populate #ms#. Which MS is how our Mail Secure of how
confidential data flows through.


Ads