Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try using
Application.CutCopyMode = False before closing the workbook Matt wrote: What if you want to not have the message: "There is a large amount of information on the Clipboard. Would you like it...blah blah" come up? Thanks again "Andrew Taylor" wrote: For saving and closing a workbook the best way is to use the SaveChanges parameter of the Workbook.Close method: ActiveWorkbook.Close SaveChanges:=True You can also prevent certain prompts by using Application.DisplayAlerts, e.g. Application.DisplayAlerts = False ActiveWorkbook.Sheets(1).Delete ' prevents "are you sure?" prompt ActiveWorkbook.SaveAs "c:\junk.xls" ' prevents prompt if file exists Application.DisplayAlerts = True ' reset prompts hth Andrew Matt wrote: Is there a way to automatically answer questions that pop up as you are manipulating files? For example, after performing specific functions to a file, I have it close, but then the questoin comes up "Would you like to save the changes you have made to file ABC?" - and the answer will always be yes...so is there a way to code for that? Thanks in advance! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hiding, or automatically answering, a confirmation msgbox | Excel Discussion (Misc queries) | |||
Excel help needs an article answering, "What is a pivot table?" | Excel Discussion (Misc queries) | |||
Answering a question in a cell | Excel Worksheet Functions | |||
Answering InpBox prompt | Excel Discussion (Misc queries) | |||
Automatically answering no to save request | Excel Programming |