Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Multiple instances of excel process starts

Dear All

I am facing a problem while automating excel, developing excel addin.
When i execute the excel addin, multiple excel process starts
generating in the task bar and thue my application hangs. Is there any
ways to handle the same.

need a sol asasp.. SOS

thanks
shantanu
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default Multiple instances of excel process starts

Hi,

Are you using any code like Set Variablename = some object

If so are you then inserting code to Set Variablename = Nothing after you
are finished with it.

This is only suggestion. I don't really know that is the problem.

--
Regards,

OssieMac


"shantanu" wrote:

Dear All

I am facing a problem while automating excel, developing excel addin.
When i execute the excel addin, multiple excel process starts
generating in the task bar and thue my application hangs. Is there any
ways to handle the same.

need a sol asasp.. SOS

thanks
shantanu

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Multiple instances of excel process starts

Hi
thanks a lot for the reply
No i am not using any such code. I have developed an C# addin for
excel in Visual Studios 2008.

object format=5;//Nothing value.
Excel.ApplicationClass xlApp=new Excel.ApplicationClass();
Excel.Workbook ",0, false,
format, null, null, false, Excel.XlPlatform.xlWindows, null,true,
false, 0, true, false, false);
Excel.Sheets xlSheets = xlBook.Worksheets;
Excel.Worksheet xlSheet = (Excel.Worksheet)xlSheets.get_Item
("Sheet1"); // open Sheet1.
xlSheet.Cells[1,2]="1234567"; // lets add a new value.

xlBook.Save();
xlApp.Quit();

now when i run the addin, it creates a menu tab in the ribbon and
along with it starts creating multiple instance of excel in task
manager.

Please advise

regards
Shantanu
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default Multiple instances of excel process starts

Hi again,

I don't know anything about C# but the following line looks a lot like the
type of code I was referring to and I suspect that is where you are gettin
the extra instances of Excel but again I am not sure so I'll gracefully bow
out now.

Excel.ApplicationClass xlApp=new Excel.ApplicationClass();


--
Regards,

OssieMac


"shantanu" wrote:

Hi
thanks a lot for the reply
No i am not using any such code. I have developed an C# addin for
excel in Visual Studios 2008.

object format=5;//Nothing value.
Excel.ApplicationClass xlApp=new Excel.ApplicationClass();
Excel.Workbook ",0, false,
format, null, null, false, Excel.XlPlatform.xlWindows, null,true,
false, 0, true, false, false);
Excel.Sheets xlSheets = xlBook.Worksheets;
Excel.Worksheet xlSheet = (Excel.Worksheet)xlSheets.get_Item
("Sheet1"); // open Sheet1.
xlSheet.Cells[1,2]="1234567"; // lets add a new value.

xlBook.Save();
xlApp.Quit();

now when i run the addin, it creates a menu tab in the ribbon and
along with it starts creating multiple instance of excel in task
manager.

Please advise

regards
Shantanu

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
Excel E-2007 starts, but Installer also starts 3 times??? Thanks for the Great Tip Setting up and Configuration of Excel 0 January 24th 10 03:21 AM
Multiple instances of Excel (Multiple workbooks) Shane Setting up and Configuration of Excel 3 November 13th 09 05:07 PM
multiple instances of excel process gets created in the task manager shantanu Excel Programming 0 January 21st 09 05:52 AM
How to process multiple Excel Files Nils Titley Excel Programming 2 March 17th 08 05:00 PM
Multiple instances of Excel Carol Crowley Excel Discussion (Misc queries) 9 March 17th 06 06:18 PM


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

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

About Us

"It's about Microsoft Excel"