Hola amigos ante que nada les deseo a todos lo integrantes del foro 'UN MUY FELIZ 2015'.
Ahora si!! hace como una hora estoy dando vuelta y no puedo resolver esto haber si alguno me ayuda.
NECESITO TENER UNA FUNCION QUE ME DEVUELVA EN CADA LLAMADO EL SIGUIENTE VALOR CON ESTE CRITERIO EL PRIMER VALOR POSIBLE SERIA
1A el sig. 2A , 3A, 4A, 5A y así HASTA LLEGAR AL TOPE ESTABLECIDO EN LA CONSTANTE (ejemplo 5) , luego sería
1B el sig. 2B , 3B, 4B, 5B
1C el sig. 2C , 3C, 4C, 5C
Const TOPE = 5
Private Sub Command1_Click()
Dim actual As String
actual = "1A"
Caption = DevuelveValor(actual)
End Sub
Private Function DevuelveValor(actual As String) As String
DevuelveValor = "1A" '"1B" "1C" .... "2A" "2B" "2C" .... "3C"
End Function