+ Reply to Thread
Results 1 to 3 of 3

Closing Workbook without saving Changes

  1. #1
    Registered User
    Join Date
    08-27-2007
    Posts
    11

    Closing Workbook without saving Changes

    I run a macro that opens onther workbbok and prints some sheets.
    The workbook that i open also contains a macro that runs when opened. When the macro from the first workbook closes this it brings up a message box asking to save changes which i have to manually click.

    I need a bit of code to not save the changes to the workbook or not to be asked.

    Also should the code go in the first workbook (where the code is run from) or from the workbook that is being closed

    Note that I am opening and closing muiltiple workbooks which i would like this to apply to

    Cheers

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606
    Please Login or Register  to view this content.
    will turn messages off (remember to turn back on at the end)
    Please Login or Register  to view this content.
    will close without saving, substitute your workbook name/variable. Sounds like it should be in the macro which opens the workbooks.

  3. #3
    Registered User
    Join Date
    08-27-2007
    Posts
    11
    Thanks for that

+ 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