Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
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


.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
GetOpen filename to open files(Workbooks) Frank Situmorang[_3_] Excel Discussion (Misc queries) 11 May 5th 09 01:02 PM
Workbooks.Open Filename:=.UpdateLinks:=0, IgnoreReadOnlyRecommended:=True [email protected] Excel Discussion (Misc queries) 5 November 9th 07 09:52 AM
Workbooks.Open Filename Konczér Tamás Excel Worksheet Functions 2 July 4th 07 04:21 PM
set filename to <filename-date on open bob engler Excel Worksheet Functions 2 July 13th 06 05:11 AM
vlookup and filename returning same result on each sheet. RogueSwan Excel Discussion (Misc queries) 3 March 22nd 05 10:08 PM


All times are GMT +1. The time now is 12:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"