LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default Trying to close a window without saving

I have a spreadsheet that runs a macro that switches between it and a second
spreadsheet, merely moving data from the second to the first. The macro then
closes the second spreadsheet. My problem is that it prompts the user to save
before closing, and I want to remove this prompt.

I tried this line: ActiveWindow.Close.Save = False. Purely guessing, but
typed in all lower case and VBA properly capitalized it, which has always
been a sign that I've guessed right or type in variable names correctly.
However, I'm getting the following error: Compile Error: Invalid Qualifier,
and the .Close is highlighted.

Can someone tell me what the statement I'm looking for actually is, and if
you have the time, explain that error to me? Very much appreciated for any
help anyone can offer.

Dan
 
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
close find window Gklass Charts and Charting in Excel 1 October 24th 07 10:21 AM
FollowHyperlink - how to close window Oliver[_3_] Excel Programming 0 November 2nd 04 09:04 PM
how to get the cmd window to close in VBA?? Simon Lloyd[_489_] Excel Programming 5 June 17th 04 08:23 PM
Close Window mark Excel Programming 2 February 20th 04 04:28 PM
Close Browser window with VBA brianelson Excel Programming 1 July 12th 03 05:35 AM


All times are GMT +1. The time now is 02:47 PM.

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"