Jump to content

How to close Excel?


Recommended Posts

Hi all!

i have noob problem =)

$filename = "\\server_1\Psd_Work\IS Distribution\управлятор_v_4.02.xls"
$oExcel = ObjCreate("Excel.Application") ;crete excel object
$oExcel.WorkBooks.Open($FileName) ;open desired file containing the macro
$oExcel.Run("run_frm_sh") ;run the macro
....
Link to comment
Share on other sites

Hi all!

i have noob problem =)

$filename = "\\server_1\Psd_Work\IS Distribution\управлятор_v_4.02.xls"
$oExcel = ObjCreate("Excel.Application") ;crete excel object
$oExcel.WorkBooks.Open($FileName) ;open desired file containing the macro
$oExcel.Run("run_frm_sh") ;run the macro
....

Hi,

#include <excel.au3>
$filename = "\\server_1\Psd_Work\IS Distribution\управлятор_v_4.02.xls"
$oExcel = _ExcelBookOpen ($filename)
WinWait("Microsoft Excel - управлятор_v_4.02.xls") ; you might have to change
$oExcel.Run("run_frm_sh")
_ExcelBookClose ($oExcel, 1) ; 1 means Save automatic 0 means you are prompted to save changes

;-))

Stefan

Edited by 99ojo
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...