KenzoIT Posted November 19, 2009 Share Posted November 19, 2009 Hi everyone, RAM used extensively when executing the code. Pls, help me solve the problem. Thanks all !AutoScript.au3 Link to comment Share on other sites More sharing options...
Authenticity Posted November 19, 2009 Share Posted November 19, 2009 #include <Excel.au3> HotKeySet("{ESC}", "_Quit") Local $oExcel = ObjCreate("Excel.Application") Local $WorkBook1, $WorkBook2 With $oExcel .Visible = True $WorkBook1 = .WorkBooks.Open(@ScriptDir & "\1.xls") $WorkBook2 = .WorkBooks.Open(@ScriptDir & "\2.xls") EndWith ; Work with both and close the only running EXCEL.EXE. Run("taskmgr.exe") $WorkBook1.Activate _ExcelWriteCell($oExcel, 55, 1) $WorkBook2.Activate _ExcelWriteCell($oExcel, 66, 1) Func _Quit() $oExcel.Application.Quit Exit EndFunc Link to comment Share on other sites More sharing options...
KenzoIT Posted November 19, 2009 Author Share Posted November 19, 2009 Thanks for your support 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