Forum: Visual Basic 4 / 5 / 6 Apr 3rd, 2006 |
| Replies: 23 Views: 208,568 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 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 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 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 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... |