Passing a custom form as an argument from vba to vb.net

I am trying to transfer parts of a system that processes word patterns. So far, common functionality has been distributed across several .dots (with vba) on the file server. Now we are striving to incorporate this functionality into the vb.net application with which we interact as a link from a word.

I would like to name the vb.net function from vba, passing the user form as an argument. From the form test class in vb.net, it works great with TestFunction (inForm: = Me). From vba I tried all kinds of calls, none of which I received.

.net function I'm trying to call

Public Sub TestFunction(ByVal inForm As Form) 'do something...
End Sub

call from vba

Public sReference As MyNetApp.DocFunc

Set sReference = CreateObject("MyNetApp.DocFunc")
sReference.TestFunction(frmMyForm)

code>

.net : http://www.geeksengine.com/article/create-dll.html , , , .

, , ? ?

+3
1

, , ? , .

0

All Articles