Documentazione HotXLS

VBAProject proprietà

Restituisce a parsed TXLSVBAProject for a classic XLS workbook that contains a VBA storage. The project exposes the module count e module source text through TXLSVBAModule items If the workbook has no VBA project, the proprietà returns nil Usa HasVBAProject / VBADefined to test for the raw payload, LoadVBAProjectFromFile e SaveVBAProjectToFile to move the preserved OLE storage payload, e ClearVBAProject to remove it from the workbook

Sintassi

proprietà VBAProject: TXLSVBAProject;

Esempio

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

Vedere also