Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2010 Option Strict for Excel Interop

$
0
0
Hi guys,

This:

vb.net Code:
  1. Dim xlApp As Object = CreateObject("Excel.Application")
  2. Dim xlBook As Object = xlApp.Workbooks.Open(TextBox1.Text)

Has worked pretty fine until now. I have not needed to use the "Strict" option until I needed to poll for a value in a range. I Googled around and found that there's the Ctype conversion, but I have problems implementing it. It looks like this now:

Name:  Untitled.png
Views: 129
Size:  8.4 KB

How do I go around this?

Thanks.
Attached Images
 

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>