Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Closing temp worksheet without saving
Hope somebody is able to help.
I have created an macro where I am opening and using an workbook, and then closing it again without saving it. The problem is that I cannot close the workbook without having to clik save-yes or save-no. I do still need to have som other excel sheets open. I have tried to use the following code: ActiveWorkbook.Close = False |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Closing temp worksheet without saving
ActiveWorkbook.Close savechanges:=false
or ActiveWorkbook.Close False JanB wrote: Hope somebody is able to help. I have created an macro where I am opening and using an workbook, and then closing it again without saving it. The problem is that I cannot close the workbook without having to clik save-yes or save-no. I do still need to have som other excel sheets open. I have tried to use the following code: ActiveWorkbook.Close = False -- Dave Peterson |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Closing temp worksheet without saving
This article could be of use to you:-
http://exceltips.vitalnews.com/Pages...t_Changes.html Hope it helps. Mat On Jan 25, 2:38 pm, JanB wrote: Hope somebody is able to help. I have created an macro where I am opening and using an workbook, and then closing it again without saving it. The problem is that I cannot close the workbook without having to clik save-yes or save-no. I do still need to have som other excel sheets open. I have tried to use the following code: ActiveWorkbook.Close = False |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Closing temp worksheet without saving
Try
ActiveWorkbook.Close savechanges:=False Mike "JanB" wrote: Hope somebody is able to help. I have created an macro where I am opening and using an workbook, and then closing it again without saving it. The problem is that I cannot close the workbook without having to clik save-yes or save-no. I do still need to have som other excel sheets open. I have tried to use the following code: ActiveWorkbook.Close = False |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Closing temp worksheet without saving
Thanks. Problem solved.
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
excel creates multiple temp files when saving | Excel Discussion (Misc queries) | |||
Problem using obj.Namespace(sourceFileName) Namespace(DestinationFilename).Itemsand then opening the xls file which creates a Temp Folder inside Temp | Excel Discussion (Misc queries) | |||
Excel Saving to Temp File for files on network | Excel Discussion (Misc queries) | |||
Why is Word, Excel saving a backup copy in my temp directory? | Excel Discussion (Misc queries) | |||
Worksheet has to set to visible as it is not visible after saving and closing Excel by VB. | Excel Programming |