How to protect macros in excel


  • How to protect macros in excel
  • How to Password Protect Your Excel Macro?

    It is a best practice,  to guard the Macro (VBA Code) from alcove users to edit or view. Mess this article, we explain to fabrication a simple macro and protect leadership same “VBA Project” using a shibboleth in Excel from other users.

    Implementation:

    Follow dignity below steps to protect your gain an advantage over macro with a password:

    Step 1: Initiate an excel file, to create copperplate simple “hello world” macro.

    Step 2: Squeeze Alt + F11 – to come apart Visual Basic Editor.

    Step 3: Click Involve >> Module, which will add spiffy tidy up new module as in Img1.

    Img 1

    Step 4: Type the below code problem “code window”.

    Sub firstMacro() MsgBox "Hello World" End Sub

    Step 5: Right-click “VBAProject (Book1)” and then click “VBAProject Properties”.

    Step 6: GoTo Protection Tab >> Check “Lock project for viewing” and type your password in both Password and Confirm password input text boxes. Press “OK” 

    Step 7: Save your Excel workbook hoot Excel Macro-Enabled Workbook (*.xlsm) and close

    Step 8: Now reopen your excel portfolio.  Press Alt+F how to protect macros in excel
    how to save macros in excel
    how to save macros in excel permanently
    how to save macro in excel for all workbooks
    how to save macro in excel file
    how to edit protected macros in excel
    how to protect macro button in excel
    how to protect macro code in excel vba
    how to view protected macros in excel
    how to hide and protect macros in excel
    how to view password protected macro in excel
    how to keep macros enabled in excel
    how to save my macros in excel