Re: enable macros when starting up program

Tech-Archive recommends: Speed Up your PC by fixing your registry



Chris wrote:
> When I start up Word 2003 an error message comes up, Heading "
> Microsoft Visual BAsic", "macros in this project are disabled. Please
> refer to the online help or documentation of the host application to
> determine how to enable macros."

Hi Chris,

Some third-party programs (OCR, WinFax, etc.) put an add-in template in the
folder C:\Program Files\Microsoft Office\OFFICE11\STARTUP. If the add-in
contains VBA code, and if you have the macro security level set to High,
you'll get that message.

To fix it, first go to Word's dialog at Tools > Macro > Security. Click the
Trusted Publishers tab and make sure there's a check in the box for "Trust
all installed add-ins and templates".

Now look in Word's dialog at Tools > Options > File Locations and note the
path of the folder listed as the Startup item. (That dialog is too narrow,
so you can select the item and click Modify to see the full path, then
Cancel to get out without changing it.) Then shut down Word.

In Windows Explorer, go to Tools > Folder Options > View, and select "Show
hidden folders and files". This is necessary because the path to the Startup
folder includes Application Data, which is a hidden folder. Then move all
files from C:\Program Files\Microsoft Office\OFFICE11\STARTUP to the Startup
location listed in Word.

When you restart Word, you shouldn't see the message again.

This problem arises because Word doesn't recognize the startup folder in the
Program Files branch as a trusted location. Putting things there is simple
for third-party developers because they don't have to figure out where your
Startup location is, but it causes problems later.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org


.



Relevant Pages

  • Re: Macros Disabled
    ... Updating Word from Microsoft's website will not put Add-Ins in your startup ... See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome! ... it out of the Startup folder? ... If you don't want any macros to run, ever, and you don't want to be ...
    (microsoft.public.word.newusers)
  • Re: Word points to wrong NORMAL.DOT...?
    ... if you want to store macros "out of harm's ... THAT template in the startup folder. ... Leave Normal.dot in the User Templates ... Any template stored in the Startup location will be loaded during Word's ...
    (microsoft.public.word.docmanagement)
  • RE: Microsoft Visual Basic problem
    ... I even uninstalled Microsoft 2003 but the problem persists. ... I find STARTUP -- nothing is in that folder. ... Macros does not have a MAIN. ...
    (microsoft.public.word.docmanagement)
  • Re: Word Visual Basic "Error 5" at start-up
    ... I that a clue? ... "Jay Freedman" wrote: ... changed the Word security setting to "disable macros with notification" at ... A new Normal.dotm file was created in the same folder. ...
    (microsoft.public.word.application.errors)
  • Re: Word Visual Basic "Error 5" at start-up
    ... "Jay Freedman" wrote: ... changed the Word security setting to "disable macros with notification" at ... A new Normal.dotm file was created in the same folder. ... Normal template; same error. ...
    (microsoft.public.word.application.errors)