I need a bit of simple code to delete just the text I have selected in a textbox.
I need a bit of simple code to delete just the text I have selected in a textbox.
Maybe :
Please Login or Register to view this content.
1. I care dog
2. I am a loop maniac
3. Forum rules link : Click here
3.33. Don't forget to mark the thread as solved, this is important
Thanks Caredog.
I could never make TextBox1.SelText = "" work.
But your example workbook works fine so I'll attempt to adapt it and come back with the result.
You are welcome donwb.
The code should be put in Userform's module (not in standard module e.g. module1 etc), and in case you rename the textbox control to something else (e.g. TxtInput), you also should change the code to reflect this, like :
Please Login or Register to view this content.
Many thanks Karedog
I forgot the golden rule - my code was in a standard module, not the User Form one.
Problem solved
If I could see how to mark this Thread as solved / closed, I would.
You are welcome, to mark this thread as solved :
select Thread Tools from the menu link above and mark this thread as SOLVED.
Regards
Thank you Karedog
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks