• 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.

All Textbox Uppercase

delta

Member
In userform contain 5 TextBox "TextBox1", "TextBox2", "TextBox3", "TextBox4","TextBox5", "TextBox6", when enter any text in above 5 textbox write in uppercase. pls help me
 
Hi Try Following, May be it will work
Code:
Sub UcaseTextBoxes()

    For i = 1 To 6

        Range("A" & i).Value = UCase(Controls("TextBox" & i).Text)
       
    Next i
   
End Sub
 
Do this for the 6 textboxes.
Code:
Private Sub TextBox1_Change()
TextBox1.Value = UCase(TextBox1.Value)
End Sub
 
Back
Top