Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Excelブックからワークシートを完全に削除しようとしましたが、期待どおりに機能しません。
CType(oWB1.Sheets("ABC"), Excel.Worksheet).Delete()
ここで何が問題になっていますか?
oWB1.Application.DisplayAlerts = False oWB1.Sheets("ABC").Delete oWB1.Application.DisplayAlerts = True
ワークシート「ABC」を削除した後、残っているワークシートはいくつですか?
oWB1.Sheets("ABC").Delete()