This is my first code ive submitted so it wont be that good.
VB Code:
Public num As Integer Public Function SquareRoot(TextBox As String) On Error Resume Next num = 1 Do num = num + 1 If num * num = TextBox Then Exit Do Loop MsgBox num End Function
To use, put
In your form.VB Code:
SquareRoot(25) 'change number




Reply With Quote