Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default How to not show save dialog after reading from excel file.

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto show properties dialog box on save cba Setting up and Configuration of Excel 4 May 18th 09 08:31 AM
Save file dialog box in Excel falcios Excel Discussion (Misc queries) 4 February 12th 07 08:29 PM
reading a range name as part of Save-as file excelnut1954 Excel Programming 1 December 27th 05 05:33 PM
Filename has Url in file-save dialog when saving exported Excel do GJones Excel Programming 0 September 1st 04 08:17 PM
VBA code to show a save as dialog does not work Kevin Excel Programming 4 November 17th 03 08:36 AM


All times are GMT +1. The time now is 09:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"