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()