Last active
September 21, 2023 12:46
-
-
Save moguno/ec91f589fc8d22242035268f8594e032 to your computer and use it in GitHub Desktop.
xlsxファイルをドラッグアンドドロップするだけで初期セル位置をA1に移動させるWSHスクリプト
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
Dim objExcel | |
Set objExcel = CreateObject("Excel.Application") | |
Dim objBook | |
Set objBook = objExcel.Workbooks.Open(WScript.Arguments(0)) | |
Dim objSheet | |
For Each objSheet In objBook.WorkSheets | |
objSheet.Cells(1, 1).Select() | |
Next | |
objBook.Save() | |
objBook.Close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment