• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Spliting textbox in 3 parts

Belleke

Well-Known Member
I have a textbox with 3 Caracters (always 3)in a userform, I want to split this textbox in 3
TextBox1 = ABC
Then the result must be
Textbox2 = A (I have =Left(Textbox1, 1)
Textbox3 = B ?????
Textbox4 = C (I have =Right( Textbox1, 1)
I don't know how to fill TextBox3
(the textboxes are on a userform)
Thanks in advance
 
if there is always 3 characters in TB1

TB3 =Mid(Textbox1,2,1)

if there is more than 3 characters in TB1

TB3 =Mid(Textbox1,Len(Textbox2)+1,Len(Textbox1)-Len(Textbox4)-Len(Textbox2))
 
Back
Top