Sign in to follow this  
Followers 0
nuberoid

How to close Excel?

3 posts in this topic

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
....

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

Thnks a lot )

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  
Followers 0