Link to home
Create AccountLog in
Avatar of donohara1
donohara1

asked on

In Excel 2010, how to stop Excel asking th euser to save the file every time the file is read ; is there a security setting.

I have a app that opens and reads Excel files and updates another data file (non Excel). With Excel 2003 and 2007, this worked well.  Now with Excel 2010, my app opens the Excel file and does 4 data reads. For each read Excel is asking the user 'do you want to save the file'. The user has to click 'No" four times to get though the process.

The target Excel files are created by Excel 2003 components. These files are successfully read  by my app when excel 2007 is installed.  (First time in Excel 2010 setup).

All of this is under windows 7.
What settings in Excel would cause/help this?

Thanks,
Don

ASKER CERTIFIED SOLUTION
Avatar of bromy2004
bromy2004
Flag of Australia image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Alternatively when you close the workbook, set the value of 'Save' as 'False' so it won't prompt you whether DisplayAlerts is True or False.

For example

oBook.Close SaveChanges:=False

Open in new window


Where oBook is the workbook object.

Sid