VbaProject.IsSigned
VbaProject.IsSigned property
Indicates whether VBAcode is signed or not.
public bool IsSigned { get; }
Examples
using System;
using Aspose.Cells;
namespace AsposeCellsExamples
{
public class VbaProjectPropertyIsSignedDemo
{
public static void Run()
{
// Load a sample Excel file with VBA project
Workbook workbook = new Workbook("example.xlsm");
// Check if the VBA project is signed
if (workbook.VbaProject.IsSigned)
{
Console.WriteLine("VBA project is signed.");
Console.WriteLine("Signature is valid: " + workbook.VbaProject.IsValidSigned);
}
else
{
Console.WriteLine("VBA project is not signed.");
}
}
}
}
See Also
- class VbaProject
- namespace Aspose.Cells.Vba
- assembly Aspose.Cells