vba courses london - protecting vba code
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft VBA Training and help » vba courses london - Protecting VBA code

vba courses london - Protecting VBA code

resolvedResolved · Low Priority · Version Standard

replyReply Sat 18 Nov 2006, 22:24Delegate Anton said...

Anton has attended:
Excel VBA Intro Intermediate course

Protecting VBA code

What is the best way of protecting VBA code to make sure other users don't change it?

For upcoming training course dates see: Pricing & availability

replyReply Mon 20 Nov 2006, 13:11Trainer Richard said...

RE: Protecting VBA code

To lock your VBA code, preventing viewing and modification, set Project Properties, using the following steps:

- Tools>Macro>Visual Basic Editor (Alt+F11).

- From within your project, select Tools>VBAProject Properties

- Click the Protection page tab and then check "Lock project from viewing"

- Enter your password and again to confirm it.

After doing this you must save, close & reopen the Workbook for the protection to take effect.

 

Vba tip:

Add A New Sheet at the end of the Workbook

To add a new sheet at the end of the workbook you need to count the sheets in the workbook using:

Sheets.Count

Then use this value as the rank of the sheet after which you want to add the new sheet:

Sheets.Add After:=Sheets(Sheets.Count)

View all VBA hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard