Private Sub Capitulos_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
Set cat = Worksheets("tablas")
t = Me.Capitulos.ListIndex + 1
r = 6
Do While cat.Cells(r, 3) <> ""
If cat.Cells(r, 2) = t Then
nc = cat.Cells(r, 3)
Exit Do
End If
r = r + 1
Loop
nomarea = InputBox("Cambio de Nombre a : " & nc, "Modificaciones: Areas de Seguimiento")
If nomarea = vbNullString Then
MsgBox "Cancel"
Else
'Aqui me manda error
Me.Capitulos.List(t - 1, 0) = nomarea
MsgBox "Acepto"
End If
l = Len(nomarea)
End Sub
Quiero renombrar el Item del List Box y me manda este mensaje
Private Sub Capitulos_DblClick(ByVal Cancel As MSForms.ReturnBoolean) Set cat = Worksheets("tablas") t = Me.Capitulos.ListIndex + 1 r = 6 Do While cat.Cells(r, 3) <> "" If cat.Cells(r, 2) = t Then nc = cat.Cells(r, 3) Exit Do End If r = r + 1 Loop nomarea = InputBox("Cambio de Nombre a : " & nc, "Modificaciones: Areas de Seguimiento") If nomarea = vbNullString Then MsgBox "Cancel" Else 'Aqui me manda error Me.Capitulos.List(t - 1, 0) = nomarea MsgBox "Acepto" End If l = Len(nomarea) End Sub
Quiero renombrar el Item del List Box y me manda este mensaje
Estará mal la instrucción que puse?
Gracias por su ayuda
Adjunto archivo
Formulario Nuevo.xlsm