hi i am creating a program that needed an excel app., and i already do it, at first no error, but after a sudden, an error appeal, here is a error. Microsoft.Office.Interop.Excel.Application' is not defined.
i am still new and still exploring in vb.net. thank you in advance!
Any help is highly appreciated :)
Grazel
0
Newbie Poster
Recommended Answers
Jump to PostCan you post some code? looks like you have a object type where it expects a defined variable.
Jump to PostYou have to create the object by
Dim appXL As New Excel.Application
CreateObject is how you would do it in vbScript, not vb.net. See here for an example.
You also have code that appears outside the Sub/End Sub (Err_Handler:). Not good. I assume that …
All 5 Replies
|-|x
126
Junior Poster in Training
Grazel
0
Newbie Poster
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
babujibabuji
0
Newbie Poster
asarchit65
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.