Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 907535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:34:15+00:00 2026-05-15T16:34:15+00:00

I developed a Access application using VBA. Everytime I open Access up, I get

  • 0

I developed a Access application using VBA. Everytime I open Access up, I get the following:

https://lh5.googleusercontent.com/wgn5B5PllVXGuG6W4_xiFa1rouSpDSn27MC0nzPkgJ5CPN8BKpAn-gDFsVS4GZtepY-c4jtbEupKeV227ogICQlzcg=s512

I have to click Options -> Enable Content to run my macros. This application will be shared among a couple of people at work who are not so tech savvy. So as per requirements, I must remove it. I’ve tried signing/packaging the database, but it still does not get rid of the warning.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T16:34:15+00:00Added an answer on May 15, 2026 at 4:34 pm

    To do that you have to add the location from where the Excel is launched in the “Trusted Locations”.

    To do this, do as follows:

    • In Excel Options, go to Trust Center and then Trusted Locations
    • Add the location.

    This would have to be done on a per-pc basis.

    In addition, there is no way to do this from an Excel file point of view as this would completely anihiliate the security feature of letting the user chose to run VBA code or not.

    Also a little sidenote, if you sign your Excel file, you’d still need the recipient to trust you as a publisher, so that’s why your solution probably did not work.

    Edit:

    Taking into comments, there does seem to be a way to do it programmatically. As taken from XpertsExchange,

    Why not just set the registry entry from code, without invoking Shell? Use the cRegistry class found here:

    http://www.vbaccelerator.com/home/VB/Code/Libraries/Registry_and_Ini_Files/Complete_Registry_Control/article.asp

    VBA Code:

     Dim c As New cRegistry
        With c
            .ClassKey = HKEY_CURRENT_USER
            .SectionKey = "Software\Microsoft\Office\12.0\Access\Security\Trusted Locations\YourTrustedLocationName"
            .ValueKey = "Path"
            .ValueType = REG_DWORD
            .Value = "Full path to Trusted Folder"
        End With
    

    The only caveat is that YourTrustedLocationname must be unique …

    You’d have to try if it should be .ValueType = REG_DWORD or REG_SZ. I’m not sure on that one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed an database application with Delphi XE2 using an Access DB, now
I have developed a Web Application using ASP.Net with Microsoft Access as database. Now
Hi I am working Android application development using titanium studio.I have developed small application.my
I have developed a facebook application using GWT and tryied to render it through
We currently have developed an application using WCF. Our clients make connections to different
I've developed an application at working using MySQL 5, that uses Views to access
I have an application developed in C# for desktop which will access MySql Database
we have developed an intranet application with Silverlight 4 using MVVM with PRISM. Up
I have developed an application in PHP + JavaScript. I'm using MySQL as database
So I have an MS Access application originally in a 2002-2003 format. Developed on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.