dll unter excel 2000
25.09.2002 14:19:34
m@rlin
ich habe probleme eine funktionen einer dll über vba abzufragen, das funktioniert wunderbar bei excel 5.0 bzw. 7.0, aber excel 2000 liefert keine werte bzw. stürzt ab.
ich hoffe es kann jemand mit nachfolgenem code etwas anfangen, zum verständnis: es gibt eine dll datei, mit der ich werte aus einem prozessleitsystem ins excel holen kann.
Declare Function CAnalogTable_FindIdOfName Lib "cslink" (ByVal analogname As String) As Long
Declare Function CAnalogObject_GetValue Lib "cslink" (ByVal id As Long) As Double
Public Function GetAnalogId(analogname As String) As Long
GetAnalogId = CAnalogTable_FindIdOfName(analogname)
End Function
Public Function GetAnalogValue(id As Long) As Double
GetAnalogValue = CAnalogObject_GetValue(id)
End Function
vielen dank