Hi Folks,
I am very new to VBA as well as this forums . So i need your support.
1. Need code for deleting the values in the textbox using keyboard (like using delete/backspace on the keyboard)
- Deleting values like last words , not by single single alphabets. Eg : if the textbox contains ( Number of poles ) , when i press backspace 'poles' should be removed not the 's' )
2. I want to add values of a button to a textbox where ever the cursor is there , In my code the values will be added to the last of the textbox always.
CODE:
Private Sub Addition_Click()
If TextBox2.Text = "" Then
TextBox2.Text = " + "
Else
TextBox2.Text = TextBox2.Text + " + "
End If
End Sub
Please help me guys.
Thanks in advance.
I am very new to VBA as well as this forums . So i need your support.
1. Need code for deleting the values in the textbox using keyboard (like using delete/backspace on the keyboard)
- Deleting values like last words , not by single single alphabets. Eg : if the textbox contains ( Number of poles ) , when i press backspace 'poles' should be removed not the 's' )
2. I want to add values of a button to a textbox where ever the cursor is there , In my code the values will be added to the last of the textbox always.
CODE:
Private Sub Addition_Click()
If TextBox2.Text = "" Then
TextBox2.Text = " + "
Else
TextBox2.Text = TextBox2.Text + " + "
End If
End Sub
Please help me guys.
Thanks in advance.