A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , ,

How do I create a new macro in Outlook 2007?





 
 
Thread Tools Display Modes
  #1  
Old April 16th 08, 04:55 PM posted to microsoft.public.outlook
Srta Evita
external usenet poster
 
Posts: 1
Default How do I create a new macro in Outlook 2007?

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
Ads
  #2  
Old April 16th 08, 05:01 PM posted to microsoft.public.outlook
Diane Poremsky {MVP}
external usenet poster
 
Posts: 1,260
Default How do I create a new macro in Outlook 2007?

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?

--
Diane Poremsky [MVP - Outlook]
Author, Teach Yourself Outlook 2003 in 24 Hours
Need Help with Common Tasks? http://www.outlook-tips.net/beginner/
Outlook 2007: http://www.slipstick.com/outlook/ol2007/

Outlook Tips by email:


Outlook Tips:
http://www.outlook-tips.net/
Outlook & Exchange Solutions Center: http://www.slipstick.com
Subscribe to Exchange Messaging Outlook newsletter:


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


"Srta Evita" Srta
wrote in message
...
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


  #3  
Old April 16th 08, 05:26 PM posted to microsoft.public.outlook
Srta Evita[_2_]
external usenet poster
 
Posts: 1
Default How do I create a new macro in Outlook 2007?

Thanks so much, Diane! The Quick Parts method worked perfectly well!

"Diane Poremsky {MVP}" wrote:

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?

--
Diane Poremsky [MVP - Outlook]
Author, Teach Yourself Outlook 2003 in 24 Hours
Need Help with Common Tasks? http://www.outlook-tips.net/beginner/
Outlook 2007: http://www.slipstick.com/outlook/ol2007/

Outlook Tips by email:


Outlook Tips:
http://www.outlook-tips.net/
Outlook & Exchange Solutions Center: http://www.slipstick.com
Subscribe to Exchange Messaging Outlook newsletter:


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


"Srta Evita" Srta
wrote in message
...
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


  #4  
Old May 20th 08, 10:09 AM posted to microsoft.public.outlook
spikee
external usenet poster
 
Posts: 1
Default How do I create a new macro in Outlook 2007?



"Srta Evita" wrote:

Thanks so much, Diane! The Quick Parts method worked perfectly well!

"Diane Poremsky {MVP}" wrote:

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?

--
Diane Poremsky [MVP - Outlook]
Author, Teach Yourself Outlook 2003 in 24 Hours
Need Help with Common Tasks? http://www.outlook-tips.net/beginner/
Outlook 2007: http://www.slipstick.com/outlook/ol2007/

Outlook Tips by email:


Outlook Tips:
http://www.outlook-tips.net/
Outlook & Exchange Solutions Center: http://www.slipstick.com
Subscribe to Exchange Messaging Outlook newsletter:


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


"Srta Evita" Srta
wrote in message
...
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



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




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
create Macro, Outlook 2007 - create is grayed out Dave Horne[_2_] Outlook - General Queries 2 November 4th 07 10:45 AM
how do I create a macro in Outlook Philip Raymond Outlook and VBA 2 April 25th 07 08:20 PM
create a Outlook macro which will check for non arrival of mail srisubha Outlook and VBA 3 November 2nd 06 08:04 AM
create macro to show file size in outlook john mcmichael Outlook and VBA 3 May 2nd 06 10:55 PM
Excel macro to create e-mail in Outlook Web Access fitful_thought Outlook - General Queries 0 April 15th 06 11:23 AM


All times are GMT +1. The time now is 05:05 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Bikini Model - Loans - Books - Per Insurance - Dan brown