I have a multiline textbox. what i essentially want to do is whenever user enters # in any line of that multiline tb. i that line to be removed completely from text box. how can i do that. my text box is named tb1
I have a multiline textbox. what i essentially want to do is whenever user enters # in any line of that multiline tb. i that line to be removed completely from text box. how can i do that. my text box is named tb1
May be try something like this....
![]()
Please Login or Register to view this content.
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
Hi, ;) Sixtsense ;)
from what I understand delete only the one line holding the string and not the whole string for the multiline. Maybe split the text at linebreak and compare each item in the array and add again after comparision.
Ciao,
Holger
Last edited by HaHoBe; 01-06-2015 at 12:21 AM.
Use Code-Tags for showing your code: [code] Your Code here [/code]
Please mark your question Solved if there has been offered a solution that works fine for you
I used Holger Suggestion and made the necessary changes in my code
Please check whether this solves your expectation
![]()
Please Login or Register to view this content.
Assuming controls on the userform
TextBox1 have original text
TextBox2 entering number
CommanButton1 to delete the line
![]()
Please Login or Register to view this content.
Thank you Sir, this is exactly what i wanted. now would it be too much of me to ask, if it possible when that line vanishes i updates a new line in another textbox. For example if I have lets say rest in one line, test in anotherline. Is it possible to set a way that if ip place # in the line which has test in it , then the tb2 should say tb2.value+"Test Completed".....if user enters # in rest then tb2 should say rest completed.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks