LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Automatically Answer YES for Pop Up Msg Box

Hello,.

by default I would like to program my excel application so that it
automatically overwrite an existing file w/o asking a question if I want to
overwrite that existing file.

In other words:
In my code it says:

ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\Holger Friebe\My Documents\My
Work\Performancebiz.xls" _
, FileFormat:=xlExcel9795, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False,
ConflictResolution:=xlLocalSessionChanges
Workbooks("Performancebiz.xls").Close SaveChanges:=False

This code triggers a message box which basically asks me if I want to
overwrite the existing file.
The default is set to NO.

I would like to
- not to the program ask me that message box question (I found a way how to
do that) and
- to then answer the question as a default with YES.

How can I program this to set to make the program automatically answer YES
and therefore automatically overwrite the existing file?

Thank you for your help.

Holger


 
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
Automatically insert time in excel but not automatically updated NeueN Excel Worksheet Functions 4 December 25th 08 07:29 AM
help with IF, if it is the answer.. Lost Will Excel Discussion (Misc queries) 1 November 19th 08 04:26 AM
Calculator Answer Doesn't Match Excel Answer GwenH Excel Discussion (Misc queries) 3 October 20th 08 10:17 AM
Need An Answer To This! Turquoise_dax Excel Discussion (Misc queries) 11 June 13th 06 06:38 PM
i cant get the exact answer e.g answer is 13.49% i got 13.00% zai Excel Discussion (Misc queries) 3 June 9th 05 01:00 PM


All times are GMT +1. The time now is 03:21 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"