How to not show save dialog after reading from excel file.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am working on a project where around 15000 excel files will be opened,
values read from them and then closed using Visual C Sharp 2005. I have the
problem that when the workbooks are closed they are opening a save/save as
file dialogue box. Obviously i do not want to sit there for 15000 files and
press this. Any ideas how to disable it? Thanks
 
Hi,
Try closing the file by explicitely saying 'No Save', in vba ity would be:

DIm wkb as workbook
...
wkb.Save False 'False meaning 'do not save'
Set wkb = Nothing

If that doesn't work, prior to closing, you could try setting the Saved
property to true.
Wkb.Saved = True 'meaning the book is not dirty.

I hope this helps,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top