RosettaCodeData/Task/Call-a-function-in-a-shared-library/VBA/call-a-function-in-a-shared-library-2.vba

9 lines
202 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
Option Explicit
Declare Function ffun Lib "vbafun" (ByRef x As Double, ByRef y As Double) As Double
Sub Test()
Dim x As Double, y As Double
x = 2#
y = 10#
Debug.Print ffun(x, y)
End Sub