Discussion:
How make a toolbar visible only i Word and not in Outlook ?
(too old to reply)
Arild Grimstad
2007-03-09 12:07:25 UTC
Permalink
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
2007-03-15 13:41:25 UTC
Permalink
Hi Arild

You can use EnvelopeVisible like this:

If Windows(ActiveDocument).EnvelopeVisible = True Then

True = Opened i Outlook
False = Opened in Word
--
Peter Karlström
Midrange AB
Sweden
Post by Arild Grimstad
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
- Do not activate AddIn, or
- Accept the AddIn but do not show that Toolbar.
AG/Norway
Loading...