Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Close file without saving


Tom Ogilvy Wrote:
You say excel then doesn't close the file.

From your description, it sounds like you are getting the prompt for
file
different from the one you intend to close. You need to look mor
closely
at how you are referencing the file.

I have never seen a prompt from

workbooks(sourcename).Close SaveChanges:=False
There wouldn't be much point in having the SaveChanges Argument sinc
it is
provided to answer that question.

--
Regards,
Tom Ogilvy

Hi Tom,

Thanks for your reply. Actually the message is 'Do you want to save th
changes you made to 'data280.xls'?', which is the file I want to close


In the past, just 'Workbooks(sourcefilename).Close' in combination wit
'Application.DisplayAlerts = False' worked fine. When it didn't work i
the new macro, I changed it in 'Workbooks(sourcefilename).Clos
SaveChanges:=False'.
But whatever I try, it just doesn't work anymore.

Regards,

Anne

--
Roadi
-----------------------------------------------------------------------
Roadie's Profile: http://www.excelforum.com/member.php...nfo&userid=593
View this thread: http://www.excelforum.com/showthread.php?threadid=27153

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
If I close a file without saving changes, can I get the autosaved jimp Excel Discussion (Misc queries) 0 July 31st 09 01:20 AM
File/Close automatically saving changes without prompt Joe@SAA Excel Discussion (Misc queries) 0 June 23rd 08 10:31 PM
Am i the first person to close and excel file, without saving chan Cjbrad Excel Discussion (Misc queries) 3 March 2nd 06 07:58 PM
Close file without saving Roadie[_3_] Excel Programming 1 October 22nd 04 02:53 PM
Close file without saving data ExcelMonkey[_96_] Excel Programming 2 March 2nd 04 11:34 PM


All times are GMT +1. The time now is 06:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"