Backspace button for a text box

Callahan

New Member
Joined
Jun 20, 2012
Messages
8
Hello, I'm wondering if any one can help, I'm getting stuck on adding a backspace button on my user form to backspace data in my text box in the same manner you with using the backspace key on the keyboard, I've tried lots of methods but I'm getting a head ache now! Any help would be great.
Thanks
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Perhaps something like this:-
Code:
Private Sub CommandButton1_Click()
If Len(TextBox1) > 0 Then
    TextBox1 = Left(TextBox1, Len(TextBox1) - 1)
End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,207,438
Messages
6,078,564
Members
446,349
Latest member
Malroos7912

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top