Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
closing active windows without saving changes
Hi,
Im working with Excel 2003. This line is supposed to allow me to close an active window without being asked to save any changes: ActiveWindow.Close SaveChanges:=wdDoNotSaveChange It does not work. Any ideas on what does work? Also, how can I prvent the message about saving the clipboard from being displayed? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
closing active windows without saving changes
It looks like you're mixing excel and word.
If you want to close a workbook, you could use: activeworkbook.close savechanges:=false And application.cutcopymode = false should stop the clipboard message. Tony wrote: Hi, Im working with Excel 2003. This line is supposed to allow me to close an active window without being asked to save any changes: ActiveWindow.Close SaveChanges:=wdDoNotSaveChange It does not work. Any ideas on what does work? Also, how can I prvent the message about saving the clipboard from being displayed? -- Dave Peterson |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
closing active windows without saving changes
Tony
if, by closing the Active Window, you want to close the Active Workbook, try something like: Workbooks("BOOK1.XLS").Close SaveChanges:=False Check the VBA Help. Regards Trevor "Tony" wrote in message ... Hi, Im working with Excel 2003. This line is supposed to allow me to close an active window without being asked to save any changes: ActiveWindow.Close SaveChanges:=wdDoNotSaveChange It does not work. Any ideas on what does work? Also, how can I prvent the message about saving the clipboard from being displayed? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Saving and Closing | Excel Worksheet Functions | |||
closing file with multiple windows open | Excel Worksheet Functions | |||
Closing Windows | Excel Discussion (Misc queries) | |||
Prevent open excel windows from automatically closing. | Excel Discussion (Misc queries) | |||
Need help for closing the active worksheet only under conditions | Excel Programming |