Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2007

Tip: Looking for answers? Try searching our database.

How make a toolbar visible only i Word and not in Outlook ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arild Grimstad - 09 Mar 2007 12:07 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.