Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
The following code explains how to check if the VBA code is signed using the VbaProject::IsSigned property. You can use any of your Excel files to test this code. For testing purposes, you can use this Excel file used in the code.
#include <iostream>
#include "Aspose.Cells.h"
using namespace Aspose::Cells;
int main()
{
Aspose::Cells::Startup();
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-C
// Source directory path
U16String srcDir(u"..\\Data\\01_SourceDirectory\\");
// Path of input Excel file
U16String inputFilePath = srcDir + u"sampleVBAProjectSigned.xlsm";
// Create workbook
Workbook workbook(inputFilePath);
// Check if the VBA code project is signed
std::wcout << U"Is VBA Code Project Signed: " << workbook.GetVbaProject().IsSigned() << std::endl;
Aspose::Cells::Cleanup();
return 0;
}
Below is the console output of the above code using the sample Excel file provided in the link.
Is VBA Code Project Signed: True Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.