Open 7dir opened 4 years ago
Set objExcel = CreateObject("Excel.Application") Set objWorkbook = objExcel.Workbooks.Open("f:\ga\prjs\MCF_V2\EXPORT_G\MCF.xlsm") objExcel.Application.Visible = False objExcel.Application.Run "'f:\ga\prjs\MCF_V2\EXPORT_G\MCF.xlsm'!Module1.Splitbook" objExcel.ActiveWorkbook.Close objExcel.Application.Quit WScript.Echo "Finished." WScript.Quit
https://stackoverflow.com/questions/2050505/way-to-run-excel-macros-from-command-line-or-batch-file
https://stackoverflow.com/questions/37212135/download-automatically-spreadsheet-as-xlsx-to-local-machine-on-event
https://github.com/coldfusion39/inject-macro
Sub Auto_Open() Test End Sub
Public Function Test() As Variant MsgBox "This is a test Excel macro!" End Function