Public Sub Main() Dim oApp As BMD_Application Dim lReturn As String Set oApp = New BMD_Application lReturn = oApp.test("test1", "test2") End SubAnd a have the BMD_Application as a class with this code:
Public Sub test(arg1 As String, arg2 As String) Debug.Print arg1 Debug.Print arg2 End SubWhen I try to run the code I get the error: Compiler error: Expected function or variable. on the oApp.test line? What does that mean? How do I fix it?