![]()
Sub Button1_Click() Application.Undo End Sub
![]()
Sub Button1_Click() Application.Undo End Sub
no that didn't work i get a debug error
any other suggestions
sorry ok this is the error Method"undo"of obect_'application'failed. error 1004
My code for the command buttons are for example
![]()
TextBox1.Value = TextBox1.Value & " check"
so what happens is whatever is written in the text box stays and "check" is then written in the text box.![]()
TextBox1.Value = TextBox1.Value & " testing"
so what I need the undo command button to do is delete the last entry in the textbox. Also the text box was created using the control toolbox. hope this helps
I already use this code so I can clear everything that is in the textbox.![]()
TextBox1 = ""
The only other thing I can think of is that instead of using a textbox, I use a cell then I think your code would work, but do you know what would need to write as a code for my buttons that generate the code now I have
but what would I need to get the "check" in a cell lets say cell E5![]()
TextBox1.Value = TextBox1.Value & " check"
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks