+ Reply to Thread
Results 1 to 3 of 3

Customize CreateItemFromTemplateMacro

  1. #1
    Registered User
    Join Date
    12-19-2014
    Location
    Chicago, IL
    MS-Off Ver
    Office 2010
    Posts
    2

    Customize CreateItemFromTemplateMacro

    Hello. I am extremely new at VBA. I created a Macro in Outlook that prepares an Outlook message from a template. Below is my code.

    Sub Proposal()
    Set msg = Application.CreateItemFromTemplate("C:\Users\My Name\AppData\Roaming\Microsoft\Templates\proposal.oft")
    msg.Display
    End Sub

    This works perfectly, except I'd like this message to send on behalf of my boss. I know I have to do something with the below code:


    .SentOnBehalfOfName = "email address"

    But not sure exactly what to do with it. Thanks for any help!

    Mike

  2. #2
    Forum Contributor
    Join Date
    08-27-2006
    Posts
    136

    Re: Customize CreateItemFromTemplateMacro

    The object is "msg"

    Please Login or Register  to view this content.
    To mark "Solved" go to Thread Tools.

  3. #3
    Registered User
    Join Date
    12-19-2014
    Location
    Chicago, IL
    MS-Off Ver
    Office 2010
    Posts
    2

    Re: Customize CreateItemFromTemplateMacro

    Of course! Got it, thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Customize toolbar
    By Bob@Sun in forum Excel General
    Replies: 2
    Last Post: 10-12-2009, 08:12 AM
  2. toolbar and customize
    By belkin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-14-2008, 04:26 AM
  3. customize colors
    By Coqui in forum Excel Formulas & Functions
    Replies: 51
    Last Post: 09-06-2005, 07:05 PM
  4. Customize Autofill
    By BigMeg in forum Excel General
    Replies: 1
    Last Post: 08-03-2005, 12:05 PM
  5. Autoformat - customize?
    By crapit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2005, 09:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1