View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
bryan bryan is offline
external usenet poster
 
Posts: 2
Default Workbooks.Open(filename) : Returning err: Object reference not... (in VB.NET)

Tried that! Same problem.

I just did one more test, though...I made all of my
variables objects and just did late binding on everything
and it works. I'd obviously rather use early binding for
everything, but if I can't get that to work then I guess
I'm stuck with that solution.

I appreciate the quick reply!

-----Original Message-----
Knowing nothing about VB.NET doesn't stop me. Does this

works:

exl = New Excel.Application()
wrkBK = exl.Workbooks.Open("somefile.xls")

--
Jim Rech
Excel MVP


.