Closed Thread
Results 1 to 5 of 5

VBA Code to automatically allow all macros for a workbook & prevent prompting pop-up?

  1. #1
    Forum Contributor jonvanwyk's Avatar
    Join Date
    06-28-2010
    Location
    Iowa, USA
    MS-Off Ver
    Excel 2010
    Posts
    452

    VBA Code to automatically allow all macros for a workbook & prevent prompting pop-up?

    This question seems really dumb...even for me. I will have 83 users on 20 different workstations, of which some users will be logged into different workstations on different days. Is there any way to have it so all macros are automatically enabled without having to either (1) enable macros for each session, or (2) permanently change the settings for every profile on every workstation <<< This would be a lot of work!

    I know the answer is probably get with our IT department to see if they can do a push to make a universal change to the Macro settings on the network, but I thought I would ask anyway <<< This might be more work than option 2 above! :-/

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: VBA Code to automatically allow all macros for a workbook & prevent prompting pop

    Look into creating a local digital certificate. Once created, you can sign the workbook(s). The end users will have to install the digital certificate one time, then they'll never have to worry about enabling macros again. Be sure to read all the warnings about potential security risks of using a digital certificate.
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  3. #3
    Forum Contributor jonvanwyk's Avatar
    Join Date
    06-28-2010
    Location
    Iowa, USA
    MS-Off Ver
    Excel 2010
    Posts
    452

    Re: VBA Code to automatically allow all macros for a workbook & prevent prompting pop

    Our IT department will not issue certificates. My peer in a different division ran into that on his Access Database.

  4. #4
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: VBA Code to automatically allow all macros for a workbook & prevent prompting pop

    Well, I don't want to get you in trouble with your IT department, but you can create your own certs. Under the start menu if you go to Microsoft Office -> Microsoft Office Tools -> Digital Certificates for VBA Projects, you can create a simple one that will do nothing but enable others to automatically trust your macros. It doesn't cost anything and in reality, it provides no security. It would be much safer, however, than putting all the users' security settings to Low.

    Other than that suggestion, I can think of no way to do what you are requesting.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: VBA Code to automatically allow all macros for a workbook & prevent prompting pop

    I'm sure that Digital Certificates using selfcert only work on the machine the certificate is created on. However:


    Your post does not comply with Rule 12 of our Forum RULES. Do not post questions with regard to breaking or bypassing a password of any type or post questions with regard to bypassing a users security settings, all such posts will be deleted, repeat offenders will be banned!

    Edit:further checking found this way of using the certificate on other machines
    Last edited by royUK; 03-30-2011 at 06:51 AM.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

Closed 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