VB Code:
Private Sub Text1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
MouseDown Text1, Button
End Sub
Public Function MouseDown(txt As TextBox, btn As Integer)
Dim subtract As Integer
On Error GoTo handler
If btn = vbRightButton Then
subtract = InputBox("Please enter the amount you wish to subtract", "Subtract")
txt.Text = txt.Text - subtract
'recalc 'this is another procedure Im calling, ...disreguard
End If
handler:
Select Case Err.Number
Case 13
MsgBox "Please enter a number"
End Select
End Function