View Single Post
  #3  
Old January 20th 07, 10:20 AM posted to microsoft.public.outlook.program_vba
A+P
external usenet poster
 
Posts: 12
Default Outlook Signature

Hi Michael,

I couldn't get Word to start using the following code from Outlook. What am
I missing?
Set wrdApp = GetObject(, "Word.Application")
Set wrdDoc = wrdApp.Documents.Add()

I also couldn't figure out how to retrieve the value in the
EmailOptions.EmailSignature entry called *PickUpMailSig" from within Word.

So I created an AutoTextEntry so I can insert the signatu

returnValue =
wrdApp.Activedocument.AttachedTemplate.AutotextEnt ries("*PickUpMailSig").Value

But the above code only works when Word is already opened. But when Word is
not opened, it doesn't work.

Any thoughts?

Paul

"Michael Bauer [MVP - Outlook]" wrote in message
...


Outlook's object model doesn't provide you with any Signature objects. But
you can use Word's model, please see EmailSignature object in Object
Browser
for its proeprties.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?...4&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am Fri, 12 Jan 2007 10:00:54 -0800 schrieb A+P:

I'm running Office Outlook 2003 Pro Sp2.

In the Microsoft Visual Basic Editor, how do I get a signature name

property
that's already been entered and saved under Outlook Tools|Options|Mail
FormatSignatures?

Paul



Ads