+ Reply to Thread
Results 1 to 3 of 3

Close a workbook without saving

  1. #1
    Forum Contributor
    Join Date
    12-21-2011
    Location
    MS, USA
    MS-Off Ver
    Excel 2013
    Posts
    119

    Close a workbook without saving

    Good afternoon,

    I have a macro that I recorded that will allow me to open an excel file "Money.xls" copy the worksheet "Mort" from that file to open excel file "Savings.xls" on the worksheet "raw data" then close that file. The issue is that when it closes the Money.xls without saving it is asking me if I want to store the copied data for future use. I have to click no before the Macro can continue to do other things. How do I stop this? I dont want to keep clicking no each time I run this Macro. Any assistance is greatly appreciated.

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Close a workbook without saving

    use such line of code

    Please Login or Register  to view this content.
    check this
    http://www.exceltip.com/st/Turn_off_...Excel/413.html
    Last edited by tom1977; 01-14-2012 at 05:21 PM.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Forum Contributor
    Join Date
    12-21-2011
    Location
    MS, USA
    MS-Off Ver
    Excel 2013
    Posts
    119

    Re: Close a workbook without saving

    That's what I thought but couldn't type it as well as you did. Thanks Tom.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1