HotXLS-dokumentation

VBAProject egenskab

Returnerer a parsed TXLSVBAProject for en klassisk XLS-projektmappe, der indeholder et VBA-lager. Projektet eksponerer modulantal og modulernes kildetekst gennem TXLSVBAModule items If the workbook has no VBA project, the property returns nil Use HasVBAProject / VBADefined to test for the raw payload, LoadVBAProjectFromFile and SaveVBAProjectToFile to move the preserved OLE storage payload, and ClearVBAProject to remove it from the workbook

Syntaks

property VBAProject: TXLSVBAProject;

Eksempel

Project := Workbook.VBAProject;
if Project <> nil then
  ModuleText := Project[1].SourceCode;

Se også