Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.programming,microsoft.public.dotnet.languages.vb
|
|||
|
|||
![]()
Howard,
I use the code successfully all the time. Not sure why you have a problem with CreateObject. ============================== Dim objXL As Object Dim objWBS As Object Dim objWB As Object Dim objWS As Object Dim mRow As DataRow Dim colIndex As Integer Dim rowIndex As Integer Dim col As DataColumn Try 'get a running instance of Excel objXL = GetObject(, "Excel.Application") Catch ex As Exception 'create a new instance of Excel if there isn't one running. objXL = CreateObject("Excel.Application") End Try -- Joe Fallon "Howard Kaikow" wrote in message ... See the Temporary Links at http://www.standards.com/index.html#Temporary. -- http://www.standards.com/; See Howard Kaikow's web site. "Fergus Cooney" wrote in message ... Hi Howard, Someone's more likely to try if you post a zip of the code in a form that's ready to use. Long code listings posted within a query suffer from loss of layout, wrapped lines, and sheer looking too overwhelming!! I'm off to bed. :-) Good night, Fergus |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
automating a control box in excel | Excel Worksheet Functions | |||
Automating Excel | Excel Discussion (Misc queries) | |||
Automating Excel w VB.Net 2003 | Excel Discussion (Misc queries) | |||
Automating Excel on a Server | Excel Programming | |||
Automating Acrobat from Excel | Excel Programming |