Jump to content
Sign in to follow this  
KenzoIT

Cache Memory

Recommended Posts

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.