Results 1 to 5 of 5
  1. #1
    3 Star Lounger
    Join Date
    Aug 2006
    Location
    Gtr London, England
    Posts
    256
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Application Quit (VBA Excel 2003)

    Hi,

    Is there a script command to close the application after closing all the workbooks. I know in word it is - ActiveWindow.Application.Quit SaveChanges:=False.

    But this doesnt seem to work for excel ?

    Any ideas please?

    Thanks.
    Lee

  2. #2
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Application Quit (VBA Excel 2003)

    <code>
    Application.Quit
    </code>

    works for me.
    Legare Coleman

  3. #3
    3 Star Lounger
    Join Date
    Aug 2006
    Location
    Gtr London, England
    Posts
    256
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Re: Application Quit (VBA Excel 2003)

    Hi,

    Thanks for that, works for me to.

    Cheers. <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>
    Lee

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Application Quit (VBA Excel 2003)

    If you want to find out the correct syntax, you can type Application or Quit in the Visual Basic Editor in Excel and press F1.

  5. #5
    3 Star Lounger
    Join Date
    Aug 2006
    Location
    Gtr London, England
    Posts
    256
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Re: Application Quit (VBA Excel 2003)

    Cool.

    Thanks for the tip Hans.

    Regards
    Lee

Posting Permissions

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