Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
The following code loads the workbook and checks if its VBA project is signed using Workbook.VbaProject.IsSigned property. The property will return true if the project is signed, otherwise it will return false.
#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 sampleFilePath = srcDir + u"Sample1.xlsx";
// Create workbook
Workbook workbook(sampleFilePath);
// Check if the VBA project is signed
bool isSigned = workbook.GetVbaProject().IsSigned();
std::wcout << u"VBA Project is Signed: " << (isSigned ? u"true" : u"false") << std::endl;
Aspose::Cells::Cleanup();
}
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.