Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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, -- Regards, Sébastien <http://www.ondemandanalysis.com "philg1984" wrote: 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Auto show properties dialog box on save | Setting up and Configuration of Excel | |||
Save file dialog box in Excel | Excel Discussion (Misc queries) | |||
reading a range name as part of Save-as file | Excel Programming | |||
Filename has Url in file-save dialog when saving exported Excel do | Excel Programming | |||
VBA code to show a save as dialog does not work | Excel Programming |