How do I close Excel Application from PPT code module ?

D

Dan

This should be simple but apprently it's not.
I am trying to programaticly have vba close the Excel
Application out completle not just a window or workbook
from my ppt code module. Somthing like this

This Sub is in a module within a PPT File which is open at
the time the sub is run.

Sub CloseExcel()
Excel.Application.Quit
End sub

Why is it not closing the Excel application ?
 
T

Tushar Mehta

What is Excel defined as?

You may also want to check http://www.tushar-
mehta.com/excel/vba/xl_doesnt_quit/index.htm

--
Regards,

Tushar Mehta
MS MVP Excel 2000-2004
www.tushar-mehta.com
Excel, PowerPoint, and VBA tutorials and add-ins
Custom Productivity Solutions leveraging MS Office
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top