I'm trying to open a Excel workbook and run a macro in it, but the macro is localized in another workbook, like this:
Excel := CreateOleObject('Excel.Application');
Excel.Workbooks.Open('C:\Documents and Settings\Administrator\MyDocs\2013\JUN\andrade 1670930.xml');
Excel.Run('C:\Configura_Xml.xls!Configura_XML_Geral');
Excel.Quit;
But this code doesn't work because the syntax for running a macro is:
"'C:\Name_Of_Book'!Name_of_Macro"
How do I do it in Delphi?