Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Sub MainSub()
TestFunc 4, 10
End Sub
Function TestFunc(a As Integer, b As Integer)
Dim result As Integer
result = a + b
Sheets("Sheet1").Cells(1, 1) = result
TestFunc = result
End Function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment