How to protect or hide VBA codes or macros in an excel file

aparna

New Member
Joined
Nov 4, 2005
Messages
16
Is there a way where I can protect the VBA codes or macros so that users do not accidentally tamper and modify them
aparna
 

Some videos you may like

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

sykes

Well-known Member
Joined
May 1, 2002
Messages
1,760
Office Version
  1. 365
Platform
  1. Windows
VBA roject explorer / right click your project / VBA project properties / Protection
 

DominicB

Well-known Member
Joined
Oct 3, 2005
Messages
1,569
Good afternoon aparna

But always remember that all Excel's protection can be bypassed, and while the VBE password protection is a bit stronger than the worksheet / workbook protection it's nowhere near as robust as its "File Open" counterpart.

That said, it should keep casual users out. Just a point worth making...

HTH

DominicB
 

Watch MrExcel Video

Forum statistics

Threads
1,119,002
Messages
5,575,503
Members
412,671
Latest member
xcihan
Top