Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It sounds like you are creating references to Excel that are not closed
properly. When you main form closes these will of course be closed, thus allowing Excel to close. Make sure all object are references through your ExcelApp object or its objects : Dim ExcelApp as Excel.application Dim WB As Excel.Workbook Set ExcelApp=New Excel.Application Set WB=ExcelApp.Workbooks.Add With WB.WorkSheets(1) .Range('A1").Value="Whatever" '...etc NickHK "gladiator" wrote in message ... I am new to excel programming. There is a windows form application, one of tasks is to format an excel sheet in background first , then print it out. at last shutdown excel gracelfully without stop the windows form application. It worked well at first ,but recently we found that excel do not exit until the main form is shut down. How to shutdown excel which is run in normal mode but invisible using C#?Or how control the excel process well in invisible manner? Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
start learning Excel/VBA, where to start from? Any online video lectures? | Excel Programming | |||
OT :Start your own online business today !start making dollars | Excel Discussion (Misc queries) | |||
Start spreadsheet with WinXP start | Excel Worksheet Functions | |||
excel and background colour | Setting up and Configuration of Excel | |||
Check box text background remains white, does not match general background | Excel Programming |