KenzoIT Posted November 19, 2009 Posted November 19, 2009 Hi everyone, RAM used extensively when executing the code. Pls, help me solve the problem. Thanks all !AutoScript.au3
Authenticity Posted November 19, 2009 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
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