LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default start excel in background

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
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
start learning Excel/VBA, where to start from? Any online video lectures? cfman Excel Programming 8 September 29th 06 10:40 AM
OT :Start your own online business today !start making dollars [email protected] Excel Discussion (Misc queries) 0 May 6th 06 09:29 PM
Start spreadsheet with WinXP start Gordon Gradwell Excel Worksheet Functions 1 July 13th 05 11:35 AM
excel and background colour anonymous Setting up and Configuration of Excel 1 April 5th 05 04:58 PM
Check box text background remains white, does not match general background Stephen W. Hiemstra Excel Programming 1 November 19th 04 01:09 PM


All times are GMT +1. The time now is 07:27 AM.

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"