Hola DAM
Solo para darte conocimiento que:
Después de tanto batalar conmigo mismo (sin ayuda solo con algunos criterios) di con el problema de que no respondiera el Maxlengh. Todo porque tenia en el mismo evento Private Sub ComboBox2_Change() rutina para que limpiara el textBox5
Para cuando se cambie el valor del ComboBox2, limpia el TextBox5
If ComboBox2 = "NIF" Then
TextBox5.Value = Empty
End If
If ComboBox2 = "NIE" Then
TextBox5.Value = Empty
End If
If ComboBox2 = "CIF" Then
TextBox5.Value = Empty
End If
If ComboBox2 = "PASAPORTE" Then
TextBox5.Value = Empty
End If
If ComboBox2 = "DE ORIGEN" Then
TextBox5.Value = Empty
End If
If ComboBox2 = "CIUDADANO" Then
TextBox5.Value = Empty
End If
If ComboBox2 = "RESIDENTE" Then
TextBox5.Value = Empty
End If
Private Sub ComboBox2_Change()
'CONTROLAMOS QUE PARA, NIF, NIE y CIF SE HABILITE EL TEXTBOX5 Y MAX DE CARACTERES SEAN 9
cmb = ComboBox2
With TextBox5
If cmb = "PASAPORTE" Or cmb = "DE ORIGEN" Or cmb = "RESIDENTE" Then
.Enabled = False
.Text = "N/A"
Else
.Enabled = True
.Text = ""
.MaxLength = 9
End If
End With
End Sub
Construi esto y no me daba, hasta que desactive lo de arriba y listo.
Al menos lo básico me va dando. De todo todo, muchas gracias amigo