2003-->2007"programatic accses to visual basic project is not trus

M

Miri

hi,
i got the following message:"programatic accses to visual basic project is
not trusted "when i'm running macro in excel 2007.
the same macro run on the same file in 2003 without any error.

the code is:
For Each x In Application.VBE.ActiveVBProject.VBComponents
....

please advice .
i need the code to work in both environments.
thanks.
 
J

Jim Rech

Enable Trust in the Trust Center (in Excel Options). This isn't a new
setting so you must have done this in Excel 2003 too.

--
Jim
| hi,
| i got the following message:"programatic accses to visual basic project is
| not trusted "when i'm running macro in excel 2007.
| the same macro run on the same file in 2003 without any error.
|
| the code is:
| For Each x In Application.VBE.ActiveVBProject.VBComponents
| ...
|
| please advice .
| i need the code to work in both environments.
| thanks.
| --
| Miri Tz.
 

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