+ Reply to Thread
Results 1 to 4 of 4

Disable running macro from Developer tap

  1. #1
    Forum Contributor
    Join Date
    07-14-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    927

    Disable running macro from Developer tap

    Hello

    I have macro to unprotect all sheet, so users can easily open macros from developer tap and run this macro to unprotect the sheets
    is there anyway to avoid this?

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: Disable running macro from Developer tap

    If you just want to remove the routine from the dialog make it private

    Please Login or Register  to view this content.
    You can still run the code from the dialog, but you need to know the name of the routine

    I assume you vb project is locked so they can not see the code?

    Edit: You can disable the button using ribbon xml, if you really want to.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    07-14-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    927

    Re: Disable running macro from Developer tap

    Yes project is locked
    But I am calling the sub from every where in the VBA code
    sheets,userforms, modules

    making it private will make problems?

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,503

    Re: Disable running macro from Developer tap

    You could maybe add an Optional parameter that you don't use in the routine.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Disable ESC While macro running
    By Undo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2022, 07:15 PM
  2. [SOLVED] How to disable formula to be changed after macro running
    By miso.dca in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2020, 10:27 AM
  3. Disable Sheet Macro when Running Module
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-17-2015, 07:09 AM
  4. Disable mouse and keyboard while running a macro - mac
    By tartampion in forum Excel General
    Replies: 0
    Last Post: 05-17-2012, 07:56 PM
  5. Disable Developer tab of Excel 2007 using Programming
    By anp24 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-11-2011, 06:51 AM
  6. Disable Developer -> Macros menu option in 2007
    By ajaykgarg in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-21-2010, 10:29 PM
  7. disable events while macro is running
    By ben in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-24-2005, 07:22 AM

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