Password Protect the VBA Project of Excel Workbook with Golang via C++
Contents
[
Hide
]
Password Protect the VBA Project of Excel Workbook in C++
You can password protect the VBA (Visual Basic for Applications) Project of a workbook with Aspose.Cells using the VbaProject.Protect() method.
Sample Code
The following sample code loads the sample Excel file, accesses its VBA Project, and protects it with a password. Finally, it saves it as the output Excel file.