Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel 2003 Range problem with .Net Interop

Hi,

I've written a function to get values from an Excel sheet to VB.Net via .Net
Interop:
....
Dim sheet As Excel.Worksheet = xlWorkbook.Worksheets("Liste")
Dim folder As String = sheet.Range("M2").Value

This worked great in Excel XP, but in Excel 2003 I'll get an error: "object
reference not set to an instance of an object". Obviusly the problem is the
range object, because I can get values from the sheet object.

Has anybody an idea what to do?

Thanks a lot!

Simon



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
Immediate Fail: Launch Excel via Interop Doug Price Excel Discussion (Misc queries) 0 January 22nd 10 04:34 PM
Excel 2003 COM interop problems Matt Storz Excel Programming 2 December 7th 04 04:47 PM
Excel Interop ActiveXSEcurity exception Graeme Excel Programming 1 October 14th 04 12:37 PM
Problem with "For each" loop using .NET Interop and Excel Juan Pablo González Excel Programming 0 May 27th 04 06:00 PM
Excel Workbook opened twice with dotnet interop Steve Weixel Excel Programming 0 August 25th 03 11:37 PM


All times are GMT +1. The time now is 06:15 PM.

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

About Us

"It's about Microsoft Excel"