Überprüfen, ob das VBA Projekt in einer Arbeitsmappe signiert ist
Contents
[
Hide
]
Sie können in Microsoft Excel unter Tools > Digitale Signaturen… prüfen, ob Ihr VBA-Projekt signiert ist oder nicht. Ebenso können Sie es programmatisch mit Aspose.Cells für Python via .NET Workbook.vba_project.is_signed-Eigenschaft überprüfen.
Überprüfen, ob VBA-Projekt in einer Arbeitsmappe signiert ist in Python
Der folgende Code lädt die Arbeitsmappe und überprüft, ob ihr VBA-Projekt mithilfe der Workbook.vba_project.is_signed-Eigenschaft signiert ist. Die Eigenschaft gibt true zurück, wenn das Projekt signiert ist, andernfalls false.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from aspose.cells import Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
# The path to the documents directory. | |
dataDir = RunExamples.GetDataDir(".") | |
workbook = Workbook(dataDir + "Sample1.xlsx") | |
print("VBA Project is Signed: " + str(workbook.vba_project.is_signed)) |