Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shutting down the Discussion groups מיכאל (מיקי) אבידן Excel Discussion (Misc queries) 7 June 4th 10 07:01 AM
Shutting off all calculations Peter Excel Worksheet Functions 7 October 16th 09 12:36 AM
Excel shutting down - not wanted! Linda Broyles Excel Discussion (Misc queries) 5 August 8th 08 05:07 PM
When shutting down my computer, message says Excel can't close. Chicago Excel Discussion (Misc queries) 3 November 22nd 05 09:24 PM
Excel is not shutting down properly Gayle Ashton Excel Discussion (Misc queries) 1 December 3rd 04 12:47 AM


All times are GMT +1. The time now is 05:08 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"