+ Reply to Thread
Results 1 to 4 of 4

how to check check if access to VBA is trusted

  1. #1
    Forum Contributor
    Join Date
    09-30-2009
    Location
    Barcelona
    MS-Off Ver
    Excel 2010
    Posts
    274

    how to check check if access to VBA is trusted

    Hi,

    I have a macro that needs access to VBA editor to run smoothly.
    Is there some easy way to check if it's not trusted so I can warn the user?

    right now I get the error when trying to copy modules, but I'd like something easier to avoid creating a file and copying modules just to check that.

    thanks!
    Last edited by bagullo; 12-15-2011 at 02:57 AM.

  2. #2
    Forum Contributor
    Join Date
    09-30-2009
    Location
    Barcelona
    MS-Off Ver
    Excel 2010
    Posts
    274

    Re: how to check check if access to VBA is trusted

    oh well,

    I figured out I only had to export a module to see if error occurs, so a function like that will do the trick!

    maybe it will help somebody out there too

    i wonder if there is a read-only property somewhere that does the same

    Please Login or Register  to view this content.

  3. #3
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: how to check check if access to VBA is trusted

    It's stored in the registry. A bit close to breaking security for me to say more than that, I think.
    Remember what the dormouse said
    Feed your head

  4. #4
    Forum Contributor
    Join Date
    09-30-2009
    Location
    Barcelona
    MS-Off Ver
    Excel 2010
    Posts
    274

    Re: how to check check if access to VBA is trusted

    I see

    in that case my little function is the prize winner for non-dangerous programming :D

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1