Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vba and vb.net

Status
Not open for further replies.

Andrei25

Technical User
Jan 23, 2006
10
DE
Hi!
I have a project in VBA and I want to use some classes and functions from a vb.net project. is this possible? without changing the vb.net project?
thanks for any advices!
 
I've never tried it but I can't see why not. I would think you can just add a reference to a .NET DLL and make calls to it in the same way as any other DLL file.

Ed Metcalfe.

Please do not feed the trolls.....
 
You should be able to as Ed says but that is assuming the .Net applications classes and functions are open to the public.


Andy Baldwin

"Testing is the most overlooked programming language on the books!
 
I found a way to make a class library as a new project (in .net). and after this to add in references (in VBA) this .net dll.
But, in my .net project there are a lots of classes, and I need just some of them. it means that I have to make a new project (class library) containing just these classes which I need?
what about some select statements directly on the server (SQL server), which in .net are working, can I use them like this in VBA (do I need to change them into pass-through queries?)

thanks a lot for your answers!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top