True, but so is a COM add-in written as a DLL. I don't know whether
that might have different rules about the equivalent of the AutoExec
procedure -- never tried it.
Personally, I think the whole idea of using Word as the Outlook editor
is an abomination; Outlook has a perfectly good editor of its own,
without the ton of troubles that the Word/Outlook interaction brings.
The few times I've wanted some Word-only feature in an email, I've
used either copy/paste or an attachment.
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
>A dot file stored in the Startup folder IS and add-in.
>
[quoted text clipped - 34 lines]
>>> >
>>> >Thanks in advance.
I have little knowledge of COM Addins or how to program for one. I have some
VB and VBA programming experience but don't remember having to create any COM
addins. I do have access to Developer, and I understand I can use that to
create an COM addin.
So, as I don't have much time to play around at the moment (especially if
ultimately it won't help me in this instance) but need to get a solution
happening soon, I am wondering if there is anyone who has experience with COM
addins and how they handle the AutoExec procedure, and if Outlook still
disables the AutoExec procedure from being fired when loading the COM addin -
if Outlook is load before Word?
Thanks for your help in advance.
> True, but so is a COM add-in written as a DLL. I don't know whether
> that might have different rules about the equivalent of the AutoExec
[quoted text clipped - 49 lines]
> >>> >
> >>> >Thanks in advance.
Tom Winter - 08 Feb 2005 14:02 GMT
Just to clear up some terminology, COM Add-ins don't have an AutoExec
procedure, they have OnConnection and OnStartupComplete methods.
From some quick testing, the OnConnection method is called when Word is
started as the e-mail editor for Outlook, so this should do what you want.
On thing you might be intererested in is the first element of the Custom()
array passed to OnConnection. It indicates how Word was started. 1 for a
normal startup, 2 for embedded (e.g., a Word object in an Excel spreadsheet)
and 3 for Automation (which is what I believe Outlook uses, though I haven't
tested).
Here's an article to get you started:
How To Build an Office 2000 COM Add-In in Visual Basic
http://support.microsoft.com/?id=238228

Signature
Tom Winter
tom@nospam.amosfivesix.com
>I have little knowledge of COM Addins or how to program for one. I have
>some
[quoted text clipped - 71 lines]
>> >>> >
>> >>> >Thanks in advance.
koolnuts - 08 Feb 2005 15:25 GMT
Thanks to you all for your help.
> Just to clear up some terminology, COM Add-ins don't have an AutoExec
> procedure, they have OnConnection and OnStartupComplete methods.
[quoted text clipped - 88 lines]
> >> >>> >
> >> >>> >Thanks in advance.