Wildcards and templates

P

Peter Faulhaber

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?
 
H

Helmut Weber

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top