View Single Post
  #14   Report Post  
PeterM
 
Posts: n/a
Default

JACKPOT!

When I looked at the "Macros In" item, I discovered that the macros were
being placed into the normal.dot and not the document. I simply copied them
from the normal.dot to the .doc and then deleted them from the
normal.dot.....SUCCESS!

Thank you for your help Charles.

"Charles Kenyon" wrote:

Macros are stored, by default, in normal.dot. This is not usually where you
want them, but it is a good default. Other places are in the attached
template (usually the template used to create the document) or in the
document itself. We can't tell you where you put your macros anymore than we
can tell you where you put your keys. Suzanne points out one way to find the
macros within the Word interface.

The other is to go into the vbe by pressing Alt-F11. Then search for the
macros using Find.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

"PeterM" wrote in message
...
I'm relatively new to macros in Word...I'm experienced in Access. I
understand what you are saying about the .dot and .doc but I'm now really
not
sure where they are. When I open the .doc and go to
ToolsMacroMacros
then the two macros appear in the Macro window. I then can edit them etc.

Does that mean they are in the .doc or .dot? I really don't remember
doing
anything with the .dot.

thanks for your help Graham!

"Graham Mayor" wrote:

If the macros are in the document and the macro security is set to medium
you will *always* get a warning prompt. If you are absolutely certain
that
the macros are stored *in the document* and you are getting no warning
and
no access, then it is possible that the Word data key in the registry is
corrupt. Back up that key and then delete it. Allow Word to build a new
one
as shown at http://www.gmayor.com/my_toolbars_are_missing.htm

My guess is that the macros were not in the document but in the
normal.dot
template and this was replaced when the machines were rebuilt. Yours
still
works because the macro is still in your normal.dot. Storing macros in
templates is a much better idea than storing them in documents.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org





PeterM wrote:
yes, they have been working for over 2 months now, it's just since
they rebuilt their machine that this has become a problem

"Graham Mayor" wrote:

Are you sure that the macros are supposed to be in the document and
not in the template (or your normal.dot)?

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




PeterM wrote:
I have a word doc (2003) which contains two macros. The
Document_Open() event calls one of the macros. Everything has been
fine until recently. Several of my users have had to rebuild their
machines including upgrading to XP and installing Office 2003. Now
when they open the word doc they get a VBA compile error saying the
macro name is not defined. When I look at the doc the macros are
there...I have the users to go ToolsMacroMacro and they do not
see the two macros contained in the doc. They have emailed the doc
to me and I can see the macros, but they cannot. Is there some
default in word somewhere where you need to enable macros? Their
macro security is set to Medium, we tried setting it to low, but
that didn't make any difference.

Any help would be greatly appreciated!