Search Results

Showing results 1 to 5 of 5
Search took 0.01 seconds.
Search: Posts Made By: seagull
Forum: Visual Basic 4 / 5 / 6 Apr 3rd, 2006
Replies: 23
Views: 208,568
Posted By seagull
I don't know VB6 but I do have Excel.
In .net I get xlApp.Rows.Count = 65536 (i.e. it doesn't recognise where you've stopped inputting values) . If you get this too, this is your subcript out of...
Forum: Visual Basic 4 / 5 / 6 Mar 29th, 2006
Replies: 23
Views: 208,568
Posted By seagull
Yep. Sorry,

I should check which forum I'm in before trying to be clever.
Forum: Visual Basic 4 / 5 / 6 Mar 29th, 2006
Replies: 23
Views: 208,568
Posted By seagull
I forgot to say you need
Imports System.Runtime.InteropServices.Marshal for
ReleaseComObject()
Also I'm not sure if you actually need xlApp = nothing. Seems ok without it.

Dan
Forum: Visual Basic 4 / 5 / 6 Mar 29th, 2006
Replies: 23
Views: 208,568
Posted By seagull
Sorry,

I did a bad thing. I just put part of the code. You should release all the COM objects when done with them in reverse order. That's every workbook, sheet, range etc. something like:
...
Forum: Visual Basic 4 / 5 / 6 Mar 22nd, 2006
Replies: 23
Views: 208,568
Posted By seagull
Not sure if you've solved this yet. I had exactly the same problem. Got this to work eventually. I needed to explicitly declare a1 as a range

Dim xlApp As Excel.Application = New...
Showing results 1 to 5 of 5

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC