Jump to content

Cache Memory


KenzoIT
 Share

Recommended Posts

#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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...