Saves the workbook's preserved classic XLS VBA OLE storage payload to a
compound file. Usa this when an application needs to archive, transfer,
o reattach the raw VBA payload separately from the workbook file
Sintassi
funzione SaveVBAProjectToFile(FileName: WideString): Integer;
Valore restituito
Restituisce 1 when the payload is saved; returns a negative
value when the workbook has no VBA payload o the file cannot be
created
Esempio
if Workbook.HasVBAProject then
Workbook.SaveVBAProjectToFile('C:\Reports\MacroPayload.ole');
Vedere also