- ©«¤l
- 63
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 122
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 2007
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taiwan
- µù¥U®É¶¡
- 2019-4-16
- ³Ì«áµn¿ý
- 2023-3-24
|
ª½±µ¨Ï¥Îvbs§Y¥i, ¥¦´N¬OWindowsª©ªºBat.
Thanks ~
==============================================
set sh=WScript.CreateObject("WScript.Shell")
Dim objExcel '«Å§iExcelÀ³¥Îµ{¦¡ÅܼÆ
Dim objWorkbook '«Å§i¤u§@磌¥óÅܼÆ
Dim strSFLPath
Dim strSFFile
strSFLPath= "D:\" 'Excel¸ô®|©w¸q
strSFFile ="ABC.xlsm" 'ExcelÀɦW
Set objExcel = CreateObject("Excel.Application")
objExcel.visible = True '°õ¦æApp®É, ¬O§_»ÝnÅã¥Ü¸ÓApp.
Set objWorkbook = objExcel.Workbooks.Open (strSFLPath & strSFFile ) '¶}±ÒExcelÀÉ®×.
objWorkbook.Application.Run "DailyMailSending" '°õ¦æ¥¨¶°
objWorkbook.Saved = True '¤£nÀx¦s¤u§@ï
objWorkbook.Close 'Ãö³¬¤u§@ï
Set objWorkbook = Nothing 'ÄÀ©ñ¤u§@磌¥ó
objExcel.Quit 'Ãö³¬Excel
Set objExcel= Nothing 'ÄÀ©ñExcelª«¥ó
objFile.Close
WScript.Quit |
|