Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.Cells allows you to check if VBA (Visual Basic for Applications) Project of Excel file is protected and locked for viewing. For this, the API provides the VbaProject.IslockedForViewing property. If it is locked for viewing, then the VbaProject.IslockedForViewing property returns true.
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.
This is the console output of the above sample code when executed with the provided sample Excel file.
Is VBA Project Locked for Viewing: TrueAnalyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.