Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel instance not shutting down
hi,
I have been using Automation with MFC to write data to an excel spread sheet. Part of code is shown below :- // Start Excel and get Application object. if(!m_objApp.CreateDispatch("Excel.Application")) { AfxMessageBox("Couldn't start Excel and get Application object."); //return; } //Get a new workbook. m_objBooks = m_objApp.GetWorkbooks(); //book = objBooks.Add (COleVariant((short)-4167)); m_objBook = m_objBooks.Add (covOptional); //Get the first sheet. m_objSheets = m_objBook.GetSheets(); |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Shutting down the Discussion groups | Excel Discussion (Misc queries) | |||
Shutting off all calculations | Excel Worksheet Functions | |||
Excel shutting down - not wanted! | Excel Discussion (Misc queries) | |||
When shutting down my computer, message says Excel can't close. | Excel Discussion (Misc queries) | |||
Excel is not shutting down properly | Excel Discussion (Misc queries) |