An unhandled exception of type
'System.InvalidCastException' occurred in interop.excel.dll
Additional information: No such interface supported
Additional information: No such interface supported
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.
View products that this article applies to.
ildasm.exe /source Interop.Excel.dll /output=Interop.Excel.il
ilasm.exe /dll Interop.Excel.il /output=Interop.Excel.dll
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
End Sub
Dim WithEvents oXL As Excel.Application
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
oXL = New Excel.Application()
oXL.Visible = True
oXL.UserControl = True
End Sub
Private Sub oXL_SheetChange(ByVal Sh As Object, ByVal Target As Excel.Range) Handles oXL.SheetChange
Debug.WriteLine("Change Event Triggered")
End Sub
oXL = New Excel.Application()
Keywords: KB316653, kbprb, kberrmsg, kbautomation