I have written code that uses some of the VB libraries but it requires that the user all access to the VB Project libraries.
To turn this on, the user must go the the Security dialog box and the Trusted Publishers tab and check the box next to the "Trust access to Visual Basic Project".
For security purposes, I do not believe that this can be turned on programatically.
But, I would like code to check to see if it is checked. If it is NOT checked, it will open the security dialog box to the trusted publishers tab after telling the user they need to check the box.
If the user attempts to run the code they get the error, "Run-time error '1004'. Programmatic access to Visual Basic Project is not trusted.
How does one go about writing the code for this?