Citar
Option Explicit
Dim indice As Integer
Private Sub cmd_Click()
Dim a
a = cmb.ListIndex
indice = indice + 1
If cmb.List(a) = "menu1" Then
Load mnua(indice)
mnua(indice).Caption = txt.Text
ElseIf cmb.List(a) = "menu2" Then
Load mnub(indice)
mnub(indice).Caption = txt.Text
ElseIf cmb.List(a) = "menu3" Then
Load mnuc(indice)
mnuc(indice).Caption = txt.Text
End If
End Sub
Dim indice As Integer
Private Sub cmd_Click()
Dim a
a = cmb.ListIndex
indice = indice + 1
If cmb.List(a) = "menu1" Then
Load mnua(indice)
mnua(indice).Caption = txt.Text
ElseIf cmb.List(a) = "menu2" Then
Load mnub(indice)
mnub(indice).Caption = txt.Text
ElseIf cmb.List(a) = "menu3" Then
Load mnuc(indice)
mnuc(indice).Caption = txt.Text
End If
End Sub
y mi duda seria como le puedo agregar codigo a esos munu que e agregado, pense en guardar el codigo en un archivo aparte o algo por el estilo, pero la verdad no tengo idea, bueno espero me puedan ayudar, y desde ya les estoy agradecido. saludos