nuberoid Posted July 23, 2009 Share Posted July 23, 2009 Hi all! i have noob problem =) $filename = "\\server_1\Psd_Work\IS Distribution\управлятор_v_4.02.xls" $oExcel = ObjCreate("Excel.Application") ;crete excel object $oExcel.WorkBooks.Open($FileName) ;open desired file containing the macro $oExcel.Run("run_frm_sh") ;run the macro .... Link to comment Share on other sites More sharing options...
99ojo Posted July 23, 2009 Share Posted July 23, 2009 (edited) Hi all! i have noob problem =) $filename = "\\server_1\Psd_Work\IS Distribution\управлятор_v_4.02.xls" $oExcel = ObjCreate("Excel.Application") ;crete excel object $oExcel.WorkBooks.Open($FileName) ;open desired file containing the macro $oExcel.Run("run_frm_sh") ;run the macro .... Hi, #include <excel.au3> $filename = "\\server_1\Psd_Work\IS Distribution\управлятор_v_4.02.xls" $oExcel = _ExcelBookOpen ($filename) WinWait("Microsoft Excel - управлятор_v_4.02.xls") ; you might have to change $oExcel.Run("run_frm_sh") _ExcelBookClose ($oExcel, 1) ; 1 means Save automatic 0 means you are prompted to save changes ;-)) Stefan Edited July 23, 2009 by 99ojo Link to comment Share on other sites More sharing options...
nuberoid Posted July 23, 2009 Author Share Posted July 23, 2009 Thnks a lot ) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now