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 / May 2006

Tip: Looking for answers? Try searching our database.

Wildcards and templates

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter Faulhaber - 29 May 2006 07:40 GMT
Hi all,

If a specific template is active a toolbar must appear. The template has one
little thing: It has a versionnumber. So I am looking for a code something
like:

If Activedocument.attachedtemplated="Proposal" & * then
                         
                           CommandBars ("test").visible=true

end if

The first line doesn't work. Anyone any idea?
Helmut Weber - 29 May 2006 08:07 GMT
Hi Peter,

If Left(ActiveDocument.AttachedTemplate, 8) = "Proposal"

Note, that is case sensitive.

-
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
"red.sys" & chr(64) & "t-online.de"
Word 2002, Windows 2000
Peter Faulhaber - 30 May 2006 07:17 GMT
Helmut,

Thanks a lot. This was very helpful

> Hi Peter,
>
[quoted text clipped - 7 lines]
> "red.sys" & chr(64) & "t-online.de"
> Word 2002, Windows 2000
 
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.