excel:vba-close-workbook
開いているブックの中から指定のブックを閉じる
Dim wb As Workbook Dim fileName As String fileName = "hoge.xlsx" For Each wb In Workbooks If wb.Name = fileName Then Application.DisplayAlerts = False wb.Close Application.DisplayAlerts = True End If Next wb
スポンサーリンク
excel/vba-close-workbook.txt · 最終更新: 2024/07/26 15:28 by shimehitsu14