Jump to content
Sign in to follow this  
KenzoIT

Cache Memory

Recommended Posts

KenzoIT

Hi everyone,

RAM used extensively when executing the code.

Pls, help me solve the problem.

Thanks all !

AutoScript.au3

post-53702-12586018325227_thumb.jpg

Share this post


Link to post
Share on other sites
Authenticity

#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

Share this post


Link to post
Share on other sites
KenzoIT

Thanks for your support :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×