Using a global Word-template as an Add-in, containing a custom toolbar. Word
XP.
When starting Outlook, that toolbar is visible - which is not desirable.
Is there a nice way using VBA to check if Word is opened directly or from
Outlook - and if Outlook do one of these:
- Do not activate AddIn, or
- Accept the AddIn but do not show that Toolbar.
AG/Norway
Peter Karlström - 15 Mar 2007 14:41 GMT
Hi Arild
You can use EnvelopeVisible like this:
If Windows(ActiveDocument).EnvelopeVisible = True Then
True = Opened i Outlook
False = Opened in Word

Signature
Peter Karlström
Midrange AB
Sweden
> Using a global Word-template as an Add-in, containing a custom toolbar. Word
> XP.
[quoted text clipped - 6 lines]
>
> AG/Norway