Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
aenico - 03 Oct 2007 01:56 GMT
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?
Doug Robbins - Word MVP - 03 Oct 2007 04:24 GMT
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.

Signature

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

>I created a Word 2000 template which work great.  First time trying to run
>it
[quoted text clipped - 3 lines]
> Private Sub Document_New() frmMain.Show.  and does not allow me to go any
> further.  How can I fix this?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.