Question : VBA Save Excel Workbook without the save prompt

Hi,

I have some code written in Access where it does some work on a excel file and then saves the changes. The problem is that when the code goes to save the workbook the save prompt in excel pops up.

I have tried to use the Application.DisplayAlerts = false but it has no effect?

Any help would be great,

Thanks

Mark

Answer : VBA Save Excel Workbook without the save prompt

Instead of
Application.DisplayAlerts = false
which disables the ACCESS alerts, you need to use

excelApp.DisplayAlerts = false

if excelApp is the variable for Excel.Application.
e.g.

set excelApp = CreateObject('Excel.Application')
...
...
excelApp.DisplayAlerts = false
excelWB.SaveAs...
excelApp.Quit
Random Solutions  
 
programming4us programming4us