📜  excel vba saveas 强制覆盖 - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:56.182000             🧑  作者: Mango

代码示例1
Set xls = CreateObject("Excel.Application")    
xls.DisplayAlerts = False
Set wb = xls.Workbooks.Add
fullFilePath = importFolderPath & "\" & "MyFile.xlsx"
wb.SaveAs fullFilePath, AccessMode:=xlExclusive, _
      ConflictResolution:=Excel.XlSaveConflictResolution.xlLocalSessionChanges    
wb.Close (True)