I want Vba code to make last code that I enter in text box appear again something like ctrl+z
Even after I write another code in the text box
I want Vba code to make last code that I enter in text box appear again something like ctrl+z
Even after I write another code in the text box
Hi sterio,
See the file associated with post #6 in the following thread: http://www.excelforum.com/excel-prog...arameters.html
It uses the little known and sparsely documented .Tag attribute of a UserForm Control, to store the Original Value. When you 'Double Click' a Text Box the value will toggle between the current value and the previous value.
I hope this helps.
Lewis
You can define a class object to store an array of textbox values, which update whenever a new value is entered.
You can then choose to "undo" - revert textbox to a previous value (or even "redo").
Here's the userform module:
And the class module:![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source
If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE
Walking the tightrope between genius and eejit...
I want code to command button something like below sheet when I hit command button code appear in text box 1
Your requirement is not clear. What exactly are you trying to achieve?
The vba project in your attachment is protected, so I can't see your existing code...
I want when I hit previous code button it make last code whichi wrote in text box 1 appear again
Last edited by sterio; 02-14-2016 at 03:26 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks