How do I create a new macro in Outlook 2007?

S

Srta Evita

Below is the macro, copied from MS Word, where it works perfectly! In
Outlook I get all sorts of error messages and debugging, which I don't
understand. Thanks for any help.

Sub SafariCare()
'
' SafariCare Macro
' Macro recorded 6/4/2007 by Eva Wilson
'
Selection.TypeText Text:= _
"Thank you for your participation in the SafariCare program! "
Selection.TypeText Text:= _
" Attached are the program guidelines for your convenience. "
Selection.TypeParagraph
Selection.TypeParagraph
Selection.TypeText Text:= _
"When you return from your mission, please return your Safari"
Selection.TypeText Text:= _
"Care bag to me promptly for washing and recycling. In addit"
Selection.TypeText Text:= _
"ion, if you'll submit a short (250-300 word) report plus a f"
Selection.TypeText Text:= _
"ew high-resolution photographs of your mission, I will publi"
Selection.TypeText Text:= _
"sh it for you in Safari Times and use it in my quarterly new"
Selection.TypeText Text:="sletters and/or museum/chapter slide shows."
Selection.TypeParagraph
Selection.TypeParagraph
Selection.TypeText Text:="Please let me know if you have any questions. "
End Sub
 
D

Diane Poremsky {MVP}

see outlookcode.com or the programming groups here - outlook's macros are
much different than in word.

Since it looks like you are just inserting text, why not use quickparts?



** Please include your Outlook version, Account type, and Windows Version
when requesting assistance **
 
S

spikee

Srta Evita said:
Thanks so much, Diane! The Quick Parts method worked perfectly well!

A simple solution to your problem would be to export the visual basic
information from word , and import it in outlook
 

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