NativeExcel suite v3.x

TXLSVBAModule class

Unit: xlsvbar
Represents a module of a VBA project.

Remarks

Use the IXLSWorkbook.VBAProject property to return an TXLSVBAProject object.
The following example demonstrates how to access VBA source code.
var 
  vba: TXLSVBAProject;
  i: integer;
begin       
  vba := book.VBAProject;
  for i := 1 to vba.Count do begin
    do_something(vba[i].Name, vba[i].SourceCode);
  end;
end;

Properties

Copyright © NikaSoft 2004-2013