![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#3
|
|||
|
|||
![]()
Thanx so much. Works for me.
"Sue Mosher [MVP]" wrote: Selection in this usage is a Word object, not an Outlook object. Therefore, what you need is a way to get from the open Outlook message to a Word.Selection object. That mechanism is the WordEditor property of the Outlook Inspector window, which returns a Word.Document object. The article at http://turtleflock-ol2007.spaces.liv...E3D8!579.entry shows how to You need to change your code so that a Selection object is derived from the actual Outlook item that you want to modify. You can also use the new Quick Parts feature in Office 2007 to save and insert boilerplate text. You can look up Quick Parts in Outlook 2007 Help; also see http://turtleflock-ol2007.spaces.liv...E3D8!158.entry -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "zoididge1" wrote in message ... Using Outlook 2007 on XP OS. I'm new to Outlook macros and so tried to use my Word 2007 macro (see following) as a standard reply to certain inquiries and it wont run. Once I figure this one out, I'll be building about 10 other responses. Thanx for any help. sub MDLV_SST() ' ' MDLV_SST Macro Selection.TypeParagraph Selection.TypeText Text:="The major you have chosen, middle-level social studies education, is currently in the curricular approval process. We cannot guarantee that this major will be available by the time classes start in fall 2010. As a result, we have placed you in secondary-level social studies education. Please contact us with any questions or concerns." End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Send Mail If Statement | Gee | Outlook and VBA | 4 | July 1st 09 07:45 PM |
if statement | Joel Allen | Outlook and VBA | 3 | May 18th 09 10:49 PM |
Iif statement on mail form | Sandi V | Outlook - Using Forms | 1 | November 17th 08 10:00 PM |
Word Macro Conditional Statement | hometeamjill | Outlook and VBA | 1 | March 24th 08 12:59 PM |
If then statement | Aggie G | Outlook - Using Forms | 3 | February 2nd 07 07:50 PM |