หน้าอ้างอิง HotXLS สำหรับคุณสมบัติ VBAProject ครอบคลุมการทำงานอัตโนมัติ Excel ใน Delphi และ C++Builder, API สมุดงาน XLS/XLSX, คุณสมบัติของสมุดงาน และการใช้งาน Pascal

หน้าแรก

สารบัญ หน้าแรก for a classic XLS workbook that contains a VBA storage. The project exposes the module count ไวยากรณ์ module source text through คุณสมบัติ VBAProject items If the workbook has no VBA project, the ตัวอย่าง returns nil TXLSVBAProject HasVBAProject / VBADefined to test for the raw payload, LoadVBAProjectFromFile ไวยากรณ์ SaveVBAProjectToFile to move the preserved OLE storage payload, ไวยากรณ์ ClearVBAProject ตัวอย่าง

VBAProject: TXLSVBAProject;

ตัวอย่าง ตัวอย่าง

ดูเพิ่มเติม

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

IXLSWorkbook.HasVBAProject method