Consulting

Results 1 to 3 of 3

Thread: Solved: dont save a window

  1. #1
    VBAX Mentor
    Joined
    Aug 2011
    Posts
    353
    Location

    Solved: dont save a window

    [VBA]Sub CloseSecInfo()
    Windows("sec.info.xlsx").Activate
    ActiveWindow.Close
    End Sub[/VBA]

    When i am closing this window, a save or dont save window pops up. How do i automatically say dont save in the macro?

  2. #2
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,720
    Location
    [vba]
    Sub CloseSecInfo()
    Workbooks("sec.info.xlsx").Close Savechanges:=False
    End Sub[/vba]
    should be sufficient.
    Be as you wish to seem

  3. #3
    VBAX Mentor
    Joined
    Aug 2011
    Posts
    353
    Location
    thank you! that works great

Posting Permissions

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