Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've made an application in VB 6.0. From this I do the following:
1. Open specific Excel-file 2. Automatically insert data into the now open Excel, based on values in the VB-application. 3. Cut all bonds to the Excel-application, but leave it open for further work and saving. 4. It should be possible to close the Excel file doing the above several times. This is what I use to open: ---code begin Dim xlo As excel.Application Dim xloW As excel.Workbook Dim myCount As Integer, x As Integer, NewMeasure As Integer Dim isEven As Boolean If xlo Is Nothing Then Set xlo = New excel.Application Else Set xlo = excel.Application End If Set xloW = xlo.Workbooks.Open("u:\excel\kontrolkort.xls") xloW.Application.Visible = True ... ---code end Currently I have a "Set xlo = Nothing" at the end. But if I close Excel, Excel is not visible but I can see it as a running process. If I attempt to open it again through my VB-app it errors. Am I approacihing it wrongly? Regards /Snedker |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Closing workbooks w/o closing Excel | Excel Discussion (Misc queries) | |||
2 Label Options - Forms Object vs Control Box Object | Excel Discussion (Misc queries) | |||
Object Variable Not Set Error on Selection object | Excel Worksheet Functions | |||
Range object to Array object conversion | Excel Programming |