Results 1 to 4 of 4
  1. #1
    Star Lounger
    Join Date
    Mar 2005
    Location
    London, Hampshire, United Kingdom
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CLOSE WITHOUT SAVING (2002)

    Somebody recently showed me a macro for Word which can be assigned to a keystroke which closes a document without prompting for a save. Is there any way of achieving the same thing in Excel? It is annoying not to be treated as capable of deciding whether or not to save.

  2. #2
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Vienna, Wien, Austria
    Posts
    5,009
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: CLOSE WITHOUT SAVING (2002)

    In Excel it is:

    <code>ActiveWorkbook.Saved = True</code>
    Gre

  3. #3
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: CLOSE WITHOUT SAVING (2002)

    Try:

    <code>ActiveWorkbook.Close SaveChanges:=False</code>

  4. #4
    Star Lounger
    Join Date
    Mar 2005
    Location
    London, Hampshire, United Kingdom
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: CLOSE WITHOUT SAVING (2002)

    Thank you both.

    Andrew.

Posting Permissions

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