HotXLS-documentatie

VBAProject eigenschap

Retourneert een geparsed TXLSVBAProject for a classic XLS workbook that contains a VBA storage. The project exposes the module count en module source text through TXLSVBAModule items If the workbook has no VBA project, the eigenschap returns nil Gebruiken HasVBAProject / VBADefined to test for the raw payload, LoadVBAProjectFromFile en SaveVBAProjectToFile to move the preserved OLE storage payload, en ClearVBAProject to remove it from the workbook

Syntaxis

eigenschap VBAProject: TXLSVBAProject;

Voorbeeld

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

Zie ook