Remove refernce from project

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can anyone let me know how I should do to remove an excel reference which I
added to the project, now that I don't need it?
Thanks
 
objExcel = nothing

Or you can use realease com boject

Dim objExcel...

Marshal.ReleaseComObject(objExcel)

(requires security permissions & imports system.runtime.interopservices)
 
I think I misread your post.

Do you mean that you have added an object by using 'Add Reference'?

Just 'Add Reference', remove the check & it should be removed. You should
also make sure under references that the object reference doesn't exist. If
it does, right-click it & choose 'REMOVE'
 
VB User said:
Can anyone let me know how I should do to remove an excel reference which
I
added to the project, now that I don't need it?

Select the reference in the project' "References" folder in the project
explorer and press the delete key.
 
Read my second reply Herfried. It says what you said, but before you said it.
The first time I answered I was thinking of a different way though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top