PC Review


Reply
Thread Tools Rate Thread

Closing temp worksheet without saving

 
 
JanB
Guest
Posts: n/a
 
      25th Jan 2008
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
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      25th Jan 2008
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
 
Reply With Quote
 
Matt Richardson
Guest
Posts: n/a
 
      25th Jan 2008
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 <jbo...@sol.dk> 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


 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      25th Jan 2008
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
>

 
Reply With Quote
 
JanB
Guest
Posts: n/a
 
      30th Jan 2008
Thanks. Problem solved.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Temp files not dissappearing after closing out Word Paul Microsoft Word Document Management 3 15th Mar 2009 03:13 AM
Worksheet has to set to visible as it is not visible after saving and closing Excel by VB. Oscar Microsoft Excel Programming 6 21st Jun 2005 10:39 PM
Saving an excel worksheet without closing all worksheets Bob Microsoft Excel Misc 9 3rd May 2004 05:00 PM
IE6 does not delete temp internet files when closing Michael Windows XP Internet Explorer 1 23rd Oct 2003 03:21 PM
Temp files will not delete upon closing Fred Windows XP Internet Explorer 1 3rd Aug 2003 05:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:49 AM.