V Excelu br rad klical program (ki bi ga napisal v VB), da mi vrne vrednost.
Nekaj podobnega kot:
Koda: Izberi vse
set obj =CreateObject("Project1.exe")
testv=obj.testl("1")
Pa ne vem kako naj naredim program v VB-ju. Nočem pa, da se program mora registrirati (regsvr32). Lahko je exe, dll ali ocx.
Procedura v VB bi bila nekaj takega:
Koda: Izberi vse
Function testl(para)
If para = "1" Then
testl = "OK"
Else
testl = "NE"
End If
End Function