![]() |
| 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. |
|
|||||||
| Tags: 2007, create, macro, outlook |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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
|
|||
|
|||
|
"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 | |
|
|
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 |