ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Get Object (https://www.excelbanter.com/excel-programming/286535-get-object.html)

Martin[_13_]

Get Object
 
I have a VB6 program which creates an excel workbook with
multiple worksheets in which data streams are inputted. I
would like to open an existing workbook, instead of
creating a new one, to do the same procedure. I am having
problems using Get Object to do so. Any help is much
appreciated.
Thanks,
Martin

Jim Rech

Get Object
 
Sub XL_Automation()
Dim xlsApp As Excel.Application
Set xlsApp = CreateObject("Excel.Application")
xlsApp.Visible = True
xlsApp.Workbooks.Open "c:\book1.xls"
'continues...
End Sub


--
Jim Rech
Excel MVP




All times are GMT +1. The time now is 04:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com