Unavailable Macros

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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 Tools>>>Macro>>>Macro 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!
 
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

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
yes, they have been working for over 2 months now, it's just since they
rebuilt their machine that this has become a problem
 
Any chance they have their security on the new machines set to the default
"High" which would disable the macros without notice. Not sure what that
would do to trying to view macros.
--
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.
 
I had them set their macro secruity level to low and it made no difference.
Not being able to view the macros is really not the problem, it's the
inability to call the macro that is causing the document to fail..........
 
Not low. Never low. Medium.
--
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.
 
they reset their level back to high because it made no difference which
security level was chosen...the macros were never being executed.......does
anyone else have an idea why?
 
The macros will _not_ be executed and you won't find out why if the security
is set to high.
--
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.
 
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

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
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 Tools>>>Macro>>>Macros
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!
 
In Tools | Macro | Macros, you can change the "Macros in" setting to pin
down the location of a specific macro.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
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.
 
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 Suzanne.
 
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.
 
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 Graham.
 

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

Back
Top