Created
October 19, 2012 01:49
-
-
Save yosiopp/3915820 to your computer and use it in GitHub Desktop.
ドロップされたEXCELファイルを処理するvbsの雛形
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Dim args | |
Dim fileName | |
Set args = WScript.Arguments | |
For Each fileName in args | |
Call proc(fileName) | |
Next | |
Sub proc(fileName) | |
On Error Resume Next | |
Dim excel | |
Set excel = CreateObject("Excel.Application") | |
'excel.Visible = True | |
excel.Workbooks.Open(fileName) | |
'' | |
'' Any Code | |
'' | |
excel.DisplayAlerts = False | |
excel.Quit | |
Set excel = Nothing | |
On Error Goto 0 | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment