you'll need a reference to your dll


Code:
'form code
Option Explicit


Private Sub Command1_Click()
Dim obj As New mydll.Class1

obj.HelloMessage


End Sub
Code:
'class1 code
Option Explicit

Public Sub HelloMessage()

MsgBox "Hello from inside this dll.."

End Sub