Hi.
I have a excel reference in my project but this line won't compile.
Indefined type, what i am doing wrong.VB Code:
Dim xlApp As New Excel.Application
TIA
Jorge
Printable View
Hi.
I have a excel reference in my project but this line won't compile.
Indefined type, what i am doing wrong.VB Code:
Dim xlApp As New Excel.Application
TIA
Jorge
Make sure you have a reference set to the relevant Microsoft Excel Object library and then add this statement above your code...
Imports Microsoft.Office.Interop
HTH,
Bob
Thanks.