Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Enabling Turst access to Visual Basic Projects

Hi Is it some how possible to Enable Turst access to Visual Basic Projects
from a VBA Code.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default Enabling Turst access to Visual Basic Projects

Hi
No, and a good thing too don't you think!?
regards
Paul

On Jul 3, 9:26*am, Sam J <Sam wrote:
Hi Is it some how possible to Enable Turst access to Visual Basic Projects
from a VBA Code.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default Enabling Turst access to Visual Basic Projects

No, the best you can do is to test if it is set.

--
__________________________________
HTH

Bob

"Sam J" <Sam wrote in message
...
Hi Is it some how possible to Enable Turst access to Visual Basic Projects
from a VBA Code.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Enabling Turst access to Visual Basic Projects

It is possible to Enable Trust to Visual Basic Project from VBA code.

It can be modifed through regedit.exe. It is called AccessVBOM, which can
also be modified through VBA code. However, closing Excel will set the
AccessVBOM value back to the level that is indicated in the "Trust access to
Visual Basic Project" checkbox.

One option is to change the AccessVBOM value within a vbScript so Excel
doesn't need to be open. If you need this done within VBA, the only option I
can think of is the following:
-VBA code closes workbook
-On workbook close, vbScript is called
-vbScript waits until all Excel apps are closed, changes AccessVBOM value,
then re-opens your Excel workbook

The code to change the AccessVBOM value is available on several forums, just
try searching for it.

"Sam J" wrote:

Hi Is it some how possible to Enable Turst access to Visual Basic Projects
from a VBA Code.

Reply
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
Trust Access to Visual Basic Project - Access to Excel and back tcb Excel Programming 0 January 8th 08 02:43 AM
Enabling Visual Basic in Excel 2007 RandyS Excel Discussion (Misc queries) 1 March 31st 07 11:10 AM
Programmatic access to visual basic project via Visual FoxPro Jim Rech Excel Programming 0 January 11th 07 01:53 PM
visual basic within Access If...Then arabella79 Excel Discussion (Misc queries) 1 October 5th 06 09:34 PM
visual basic within Access If...Then arabella79 Excel Discussion (Misc queries) 0 October 5th 06 09:24 PM


All times are GMT +1. The time now is 06:20 AM.

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

About Us

"It's about Microsoft Excel"