M
Marlon R
Is there a way to access COM object like VB.NET when Option Strict is set to
Off.
I am write an application that will interop with Excel. But the target
machines all have different version (9,10,11) .
Option Strict Off
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim o As Object = GetObject("")
o.GetName()
End Sub
End Class
Off.
I am write an application that will interop with Excel. But the target
machines all have different version (9,10,11) .
Option Strict Off
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim o As Object = GetObject("")
o.GetName()
End Sub
End Class