Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default Opening Excel in my program

"Paul Reynolds" wrote...
Sort of...

In VB.NET you can use code like:

Public Sub SomeSub(...)
Dim xlApp as Excel.Application

Set xlApp = New Excel.Application
' your VBA code here
xlApp.Quit
End Sub

....

Depending on how good (or not) the garbage collection is, it may be safer to
add a final statement:

Set xlApp = Nothing


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 2007 error when opening program gailg Excel Discussion (Misc queries) 0 December 2nd 09 02:55 PM
opening newer version of excel program serg c Excel Discussion (Misc queries) 2 November 12th 08 09:02 PM
Opening Program Thru Explorer zaybexx Excel Discussion (Misc queries) 1 November 27th 06 10:27 PM
opening non microsoft program from excel bigdaddy3 Excel Discussion (Misc queries) 4 October 10th 05 01:09 PM
Hyperlink opening program Daan64 Excel Discussion (Misc queries) 0 March 26th 05 08:35 AM


All times are GMT +1. The time now is 01:04 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"