Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default how to disable save prompt on closing excel file in automated mode

how to disable "Do you want to save the changes to <file name" manual prompt
everytime while closing excel files having macros (macro password not known),
while in automated task mode which is closing and opening files automatically.
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

If I want to close another workbook in VBA, I'd use something like:

workbooks("otherworkbook.xls").close savechanges:=false

(false means I want to discard those changes.)



wrote:

how to disable "Do you want to save the changes to <file name" manual prompt
everytime while closing excel files having macros (macro password not known),
while in automated task mode which is closing and opening files automatically.


--

Dave Peterson
  #3   Report Post  
 
Posts: n/a
Default

Hello Dave,
Thanks for your reply. Pls. help me understand what u meant to say,

My problem is I have approx. 6000 excel files and these files go as input to
a software program which automatically picks data from these files by openng
and closing them on its own. But since these files contain macros so
everytime a self opened file is closing down it asks for a manual
intervention to save changes or not... which defies the whole purpose of
automation. Iam a very basic user of excel and so would like to know how can
I avert that prompt so that the whole process runs smoothly.

Thanks and regards,
Vipul Agarwal

"Dave Peterson" wrote:

If I want to close another workbook in VBA, I'd use something like:

workbooks("otherworkbook.xls").close savechanges:=false

(false means I want to discard those changes.)



wrote:

how to disable "Do you want to save the changes to <file name" manual prompt
everytime while closing excel files having macros (macro password not known),
while in automated task mode which is closing and opening files automatically.


--

Dave Peterson

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
save excel file formatted as f12.3 inquirer Excel Discussion (Misc queries) 2 June 14th 05 01:01 AM
VBA for Excel 2000 file is corrupt nkamp Excel Discussion (Misc queries) 0 May 26th 05 03:37 PM
User cannot save excel file in workbook Justin@Martin Excel Worksheet Functions 0 May 16th 05 01:52 PM
save excel spreadsheet as a csv file thelma Excel Worksheet Functions 1 January 20th 05 04:33 PM
Save & Save As features in file menu of Excel Blue Excel Discussion (Misc queries) 9 December 27th 04 08:49 PM


All times are GMT +1. The time now is 08:18 PM.

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"