How to Protect VBA Code in Excel

preview_player
Показать описание
How to lock or protect VBA code in excel?

Sometimes you have to do some advance coding in your excel files. And you have to share most of those files to your colleagues or other people right?

This is where the problem comes in. There are some curious people who would like to sneak peak your code. Sometimes they would like to tweak it. Sometimes they will simply destroy the code without knowing. This is the hassle we face with a shared file.

No in this tutorial you will learn how to password protect your VBA code in excel so that no one touches your code without permission. Let’s get started.

-----------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------

Step 2: Click on the “Visual Basic”

Step 3: Click on “Tools”

Step 4: Click on “VBAProject Properties” and a new dialogue box will open.

Step 5: Click on “Protection”

Step 6: Now Check Mark “Lock Project for Viewing”

Step 7: Enter and confirm the password.

Step 8: Save the file in Excel Macro-Enabled Workbook which is .xlsm format.

Done. You have successfully password protect your Vba Code in excel.

Thanks for watching.

#exccel10tutorial #lockVBA

If you like this tutorial, please subscribe:

Playlists:

Social media:
Рекомендации по теме
Комментарии
Автор

Thank you, this is what i needed. My appreciated.

mybooks
Автор

Hi, I want to protect VBA code only but userform also getting protected and not able to use commond button

TodaysTradeMantra
Автор

Thanks for sharing your knowledge. Is there a way to recover the password if I forget it? Greetings from italy.

ms
Автор

Good thanks for giving information about Lock vbs

AnilKumar-tmfq
Автор

Thank you for sharing this. The only flaw in this is that the "RUN" button is still available and therefore you can still run any macro. Do you perhaps know of a way to lock that?

mfourie
Автор

this kind of protection is quite useless. can easily be unprotected. I need something better. Any recommendation?

mystickeru
Автор

too easy to disassemble in zip format, how do you provide multiple layers of defense?

santrisholawat
Автор

sir apne raw 3 rakha hai agar muje vo raw ki place ko change krna ho to code me kaha kaha raw ki place ko change krna hoga kyoki video me muje "XFD3" samaj nhi aya so plzz explain kijiye

tapan
Автор

Sir, password break zip extension through how to be solution.

VijayKumar-zdou
Автор

Sir I want xlsm file extension never change in zip format if file in zip format automatically all data is deleted please how to make this coding in vba

VijayKumar-zdou
Автор

But zip extension break password how to protect

VijayKumar-zdou
Автор

Simple way sir, I m save file xlsm if any other person change extension example xlsx, xls, any format then automatically converted xlsm. Simple thing never change xlsm never change please help how to make VBA code this situation.

VijayKumar-zdou
Автор

But this protection seem to be not secure.

giovanniguarino
Автор

Lol just unlocked one yesterday :D Worst security tbh

emillagerroos
Автор

its open trick is semple\

oh.. no...

agarwalricemill-khutar
Автор

This method is not good and easy to crack

relax_music
Автор

Thanks for revealing your VBA code. Now I’m going to find you, access your Excel file and edit your VBA code 👿 🫵🏽

sayveetwice