Can't use the userforms and Macros within a Project

C

cyberdude

Hi,

In a Word document, I have created a Word document's project by
writing some userforms and macros. When I view it with the visual
basic editor, I find that the project contains a Microsoft Word
object, a "form" and a "module". Under "form", there are some
userforms and under "module", there is a "NewMacro". I tried to
activate the macros within the "NewMacro" by selecting "Tool"->"Macro"-
MacroA but the following error message showed up:

The macro of this project has been stopped. Please read the online
explanation or document for the main application and find out how to
activate the macro.

(the above message is translated from Chinese, because I use a Chinese
Window)

I found that the necessary userforms and macros are all within "form"
and "module" but I don't understand why I can't activate the macros.
Can someone help me with this problem?

Mike
 
D

Doug Robbins - Word MVP

Save the document as a template into your templates folder and the code in
the template will then be trusted. It is not running at the moment because
of macro security issues. If you change the security level from High to
Medium, you will be asked if you want to run the macro, but saving it in the
templates folder is the better option.

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

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