Is there a way to disable or bypass routines that are meant to override Word's builtin Word commands

T

TC

Hello,

I am currently experiencing the following problem:

Template contains routines meant to override Word's builtin Word commands
(i.e. there is an "EditPaste" VBA routine that is meant to fire when the
user does Ctrl + V or Edit > Paste).

The routine fires on my own 2000 and XP machines but does not fire on the
client's machines.

Is there some way to disable these customizations or is there some 3rd party
tool or virus tool that disables the routines?

Thanks & Regards,

TC
 
J

Jezebel

Running Word with macros disabled will do it. In some corporate setups, this
is enforced as a matter of IT policy.
 
T

TC

Thanks for the info. I know that completely disabling will do this but that
isn't what is happening or the behavior that I'm seeing.

It's as if the overridden Word commands are being bypassed.

All custom macros run & my application event handler is running.

For some reason, the "EditPaste" routine does not fire on their machines.

Regards,

TC
 
H

Howard Kaikow

Whether the "real" or overridden version of a command is used depends on the
templates used.
If the overridden command is coded in, say, the Normal template, then all
uses of that command should get overridden.
However, the command is overridden only in particular templates, then the
command will only get overridden when those templates are attached to tee
document (or are put in a global template).
 
T

TC

Hey Howard,

Thanks for the help. Yes, I know this.

The behavior that I'm seeing is that the overrideen routine is not firing
off in the document whose attached template is the template containing the
code.

Very odd behavior.

Any ideas what the cause is?
 
C

Cindy M -WordMVP-

Hi Tc,
The routine fires on my own 2000 and XP machines but does not fire on the
client's machines.

Is there some way to disable these customizations or is there some 3rd party
tool or virus tool that disables the routines?
For starters: what's the macro security on these installations? If it's
"High", then the macros are automatically disabled. About the other stuff, you
should ask their IT department.

More than one template with the same override could also cause a conflict.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
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