由于activewoorkbook.close true
我的宏打开 saveFileDialog 但它默认选择其保存类型为“Excel Workbook”。我需要将其更改为“excel 97-2003 工作簿”。即使我在 excel 保存选项中更改了我的默认格式。但它仅在我手动保存文件时才有效。谁能给我一些建议?
Sub OpenAllWorkbooksnew() Set destWB = ActiveWorkbook Dim DestCell As Range
Dim cwb As Workbook
For Each cwb In Workbooks
**Call donemovementReport**
ActiveWorkbook.Close True
ActiveWorkbook.Close False
Next cwb
End Sub