Skip to content

DnaComServer - Sample not working #37

@Mathefreak007

Description

@Mathefreak007

I followed the instructions in the sample\DNAComServer.

When starting Excel in debug mode the =DnaComServerHello() works fine in the sheet.

Using the functions in VBA with early or late binding isn't working.

Sub TestLateBound()
        Dim dnaComServer As Object
        Dim hello As String
        Dim result As Double
    
        Set dnaComServer = CreateObject("DnaComServer.ComLibrary")
        hello = dnaComServer.ComLibraryHello()
        result = dnaComServer.Add(1, 2)
    
        Debug.Print hello, result
End Sub

Image
Runtime error 424 - object required.

Similar with early binding.
Set the reference on the tlb is fine.
But then an error occurs when starting the sub.

Are there any hints what to do to fix that issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions