Inserting a buildingblock item into an email programatically

M

Mikael

Hello,

in Outlook 2007 email editor, I want to insert a building block item using a
macro. I fail to find the way to do this. Any suggestions are appreciated.

Regards, Mikael
 
S

Sue Mosher [MVP-Outlook]

You need to return a Word.Document object from the message and then use Word methods. See http://www.outlookcode.com/codedetail.aspx?id=1571 for a code sample.

Note that the Word macro recorder is still your friend. The sample I suggested includes the basic syntax for returning a Word.Selection object from an email message. With that plus the macros that you record in Word, you can figure out the Outlook VBA code for just about anything you'd want to do in the editor.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Top