There are multiple ways to call an external file....
A List:
- References : You'll see 'm in the object list and you can see the properties, though this only works for COM+ DLL's (ie. ActiveX DLL's)
VB Code:
' Reference it first.
Dim MyApp as new MyApp.MyClass
MyApp.ShowHelloWorld
- CreateObject : Late-binding of DLL's also works only for ActiveX DLL's..
VB Code:
Dim AnObject as Object
Set AnObject = LoadObject("MyDLL.MyClass")
Call AnObject.SayHelloWorld
And there's the Declare Statements also used for most DLL's.
VB Code:
Public Declare Function CoCreateInstance Lib "Kernel32" etc. etc.
Some are easy, some are a pain