Basic programming help
Code:
Function getsask(ByVal SaskNr As Integer, ByVal Target As Range)
Dim a As Integer
a = Target.Offset(1, 0).Value
getsask = a
End Function
When I do =getsask(1, A1:A2) i get #VALUE!
Any ideas how to correctly get Integer from cell?
|