Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
My app hooks up to Excel the following way: Set moExcelApp = CreateObject("Excel.Application") Set moExcelWS = moExcelApp.ActiveWorkbook.ActiveSheet and disconnects from it this way: Set moExcelWS = Nothing Set moExcelApp = Nothing When should I use: moExcelApp.Application.Quit ? Under what circuimstances? Is it really necessary to use it? Your help appreciated, Jack |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When should I use:
moExcelApp.Application.Quit When you want to quit 'your' instance, irrespective as to whether user has opened their own wb in your moExcelApp or some other reference refers to the instance. In either case simply 'Set moExcelApp = Nothing' would not close the app. I responded to a similar question of yours the other day, not sure if you saw it. Regards, Peter T "Jack" <replyto@it wrote in message ... Hello, My app hooks up to Excel the following way: Set moExcelApp = CreateObject("Excel.Application") Set moExcelWS = moExcelApp.ActiveWorkbook.ActiveSheet and disconnects from it this way: Set moExcelWS = Nothing Set moExcelApp = Nothing When should I use: moExcelApp.Application.Quit ? Under what circuimstances? Is it really necessary to use it? Your help appreciated, Jack |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pivot Tables disconnect | Excel Discussion (Misc queries) | |||
How to disconnect the line for Internet? | Excel Discussion (Misc queries) | |||
Disconnect linked file | Excel Discussion (Misc queries) | |||
Shared Workbook - how to disconnect the pop-up... | Excel Programming | |||
How to disconnect when WebQuery done | Excel Programming |