สอบถามต้องการโชว์ textbox ตามจำนวนที่ต้องการ
Posted: Tue Oct 01, 2019 6:47 pm
ต้องการให้โชว์ Textbox ตามเลขที่กรอกไว้ค่ะ รบกวนช่วยดู code ให้หน่อยค่ะว่ามีตรงไหนผิด
Code: Select all
Private Sub CommandButton1_Click()
b = ComboBox1.Value
c = ComboBox2.Value
If b = 1 And c = 2 Then
For ii = 1 To 200
Me.Controls.UserForm2("TextBox" & ii).Visible = False
Next ii
UserForm2.Textbox300.Visible = True
End If
UserForm2.Show
End Sub