WindowSelectionChange

D

David Price

I have written a WindowSelectionChange event (to "disable" the
header/footer) in a template. This works fine on all my PCs but my customer
has a problem on his in that the event works if Word is already running
before he creates a document from the template but not if he launches Word
from the template by double-clicking it or following a link from the
intranet. So, the event does not intialise when Word is first started.
 
G

Graham Mayor

You cannot force users to run your code - virus writers would love it if you
could.
Why in any case does it matter whether the users can access the header or
not? If you think such a measure would protect your header from plagiarism
you need to think again.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
D

David Price

Thanks but that doesn't really answer the problem. I want to disable the
header for whatever reason (I don't want them to "mess it up") and I have
code that does it, my only problem is the event does not initialise on some
PCs when Word is first started. My templates have an authenticated
signature.

David Price
 
D

Doug Robbins - Word MVP

See the article "How can I prevent users from editing the header of a
document in Word 2000 or higher?" at:

http://www.word.mvps.org/FAQs/Customization/ProtectWord2000PlusHeader.htm

though it may just be the same and have the same issue as that which you
already have. There are a number of other "event" based operations that
will not work properly if Word is started other than from the Start menu.
--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
C

Cindy M.

Hi David,
I have written a WindowSelectionChange event (to "disable" the
header/footer) in a template. This works fine on all my PCs but my customer
has a problem on his in that the event works if Word is already running
before he creates a document from the template but not if he launches Word
from the template by double-clicking it or following a link from the
intranet. So, the event does not intialise when Word is first started.
And how is the event being initialized? (In what kind of procedure?)

Version of Word?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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