How do I fix a run-time error in Visual Basic?

A

aenico

I created a Word 2000 template which work great. First time trying to run it
in Word 2007, but it gives me Run-time error '6068': Programmatic access to
Visual Basic Project is not trusted. When I press OK it takes me to the
Private Sub Document_New() frmMain.Show. and does not allow me to go any
further. How can I fix this?
 
D

Doug Robbins - Word MVP

The problem is probably in code in the Initialize() or Activate() events of
the form.

If you have the template open and the form in the active window of the
Visual Basic Editor and you select Run Sub/UserForm from the Run menu, can
you then see where it is falling over.

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