Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Run Excel VBA Macro via AutoIt...

$
0
0

Hi Guys,

I used to use the following: 

$Excs = _ExcelBookOpen("C:\Us\Excs.xlsm", 0) Sleep(1000) $Excs.Run("MAIN_DS");

But after the Excel.au3 was re-write it doesn't work. 

I've had a look at https://www.autoitscript.com/autoit3/docs/libfunctions/Excel%20Management.htm mainly, [url=https://www.autoitscript.com/autoit3/docs/libfunctions/_Excel_BookOpen.htm and [url=https://www.autoitscript.com/autoit3/docs/libfunctions/_Excel_Open.htm but I can't seem to open the file nor can I find anything about how to run a macro.

Any advise would be very much welcome.

Following _Excel_BookOpen I get the following error...
 NJNZxYv.png

 

I'm using Excel 2013 64bit.


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>