Check if VBA Project is Protected and Locked for Viewing

Possible Usage Scenarios

Aspose.Cells allows you to check if VBA (Visual Basic for Applications) Project of Excel file is protected and locked for viewing.

Sample Code

The following sample code loads the sample Excel file and checks if VBA (Visual Basic for Applications) Project of Excel file is protected and locked for viewing. Please also see its Console Output for a reference.

Console Output

This is the console output of the above sample code when executed with the provided sample Excel file.

 Is VBA Project Locked for Viewing: true