LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Compile Errors and Missing references

Programmatic Access to the VBOM not trusted...

in ExcelXP this setting can be changed by the user in Macro options
(second tab at the bottom.

IN Excel2003 the dialog still shows it, but is grayed out.
(only an administrator can set it.)

In the registry the key has been moved from HKCU to HKLM.

HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\E xcel\Security
AccessVBOM REG_DWORD 0|1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\ Excel\Security
AccessVBOM REG_DWORD 0|1



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


mangesh_yadav wrote:


Thanks for the response, Tom.

But as I mentioned earlier, for the first run I get the run-time error:
Programmatic access to VB Project is not trusted, and for subsequent
runs of the sub, I get the run-time error: Method 'VBProject' of object
'_Workbook' failed.

Is it something to do with my local setting that I get these run-time
errors....?

My macro security setting is set to 'Medium'. And I am using Windows XP
professional and Office XP.

Mangesh



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
compile errors johnny Excel Discussion (Misc queries) 1 February 24th 05 11:49 PM
Compile Errors and Missing references mangesh_yadav[_147_] Excel Programming 1 October 28th 04 12:53 PM
Compile Errors and Missing references mangesh_yadav[_146_] Excel Programming 0 October 28th 04 09:23 AM
Compile Errors and Missing references mangesh_yadav[_145_] Excel Programming 1 October 28th 04 09:13 AM
Compile Errors Patricia[_3_] Excel Programming 2 October 17th 03 11:48 AM


All times are GMT +1. The time now is 01:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"