VBS script Example.
how to run Macro Excel file from vbs script.
Step1- Open Notepad
>>paste below code>>File Save filename.vbs and run vbs file.
----------------------------------------------------------------------------
Set ObjExcel=CreateObject("Excel.Application")
objExcel.Application.Run"'C:\NitinVbaAppST\nitintest.xlsm'!Module1.msgtest"
ObjExcel.DisplayAlerts=False
ObjExcel.Application.Quit
Set ObjExcel=Nothing
how to run Macro Excel file from vbs script.
Step1- Open Notepad
>>paste below code>>File Save filename.vbs and run vbs file.
----------------------------------------------------------------------------
Set ObjExcel=CreateObject("Excel.Application")
objExcel.Application.Run"'C:\NitinVbaAppST\nitintest.xlsm'!Module1.msgtest"
ObjExcel.DisplayAlerts=False
ObjExcel.Application.Quit
Set ObjExcel=Nothing
---------------------------------------------------------------------------------
please note
msgtest is macro function name which use in nitintest.xlsm fil