Como usar o workbook.saveas com Overwrite automático
Nesta seção de código, o Excel SEMPRE solicita: "Arquivo já existe, você deseja sobrescrever?"
Application.DisplayAlerts = False
Set xls = CreateObject("Excel.Application")
Set wb = xls.Workbooks.Add
fullFilePath = importFolderPath & "\" & "A.xlsx"
wb.SaveAs fullFilePath, AccessMode:=xlExclusive, ConflictResolution:=True
wb.Close(True)
Porquedb.SaveAs
sempre me avisar para sobrescrever o arquivo existente se eu tiverDisplayAlerts = False
?
Desde já, obrigado!