Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Close file without saving data
I have a routine where I open a file and make temporary changes to it.
When I close it, I do not want to be prompted to save changes. I d not want to save the changes. They code I am using looks like this: Windows(FilenameVar &".xls").Activate ActiveWindow.Close How to code it so that I am not prompted for saving? Thanks -- Message posted from http://www.ExcelForum.com |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Close file without saving data
Hi
try Windows(FilenameVar &".xls").Activate Application.DisplayAlerts = False ActiveWindow.Close Application.DisplayAlerts = True you could also use Application.DisplayAlerts = False Workbooks(FilenameVar &".xls").close Application.DisplayAlerts = True -- Regards Frank Kabel Frankfurt, Germany I have a routine where I open a file and make temporary changes to it. When I close it, I do not want to be prompted to save changes. I do not want to save the changes. They code I am using looks like this: Windows(FilenameVar &".xls").Activate ActiveWindow.Close How to code it so that I am not prompted for saving? Thanks. --- Message posted from http://www.ExcelForum.com/ |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Close file without saving data
Workbooks(FilenameVar &".xls").Close False
-- Vasant "ExcelMonkey " wrote in message ... I have a routine where I open a file and make temporary changes to it. When I close it, I do not want to be prompted to save changes. I do not want to save the changes. They code I am using looks like this: Windows(FilenameVar &".xls").Activate ActiveWindow.Close How to code it so that I am not prompted for saving? Thanks. --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
If I close a file without saving changes, can I get the autosaved | Excel Discussion (Misc queries) | |||
File/Close automatically saving changes without prompt | Excel Discussion (Misc queries) | |||
close w/o saving | Excel Worksheet Functions | |||
Am i the first person to close and excel file, without saving chan | Excel Discussion (Misc queries) | |||
Excel 2003: File->Close without saving changes (save menu does no. | Excel Discussion (Misc queries) |