Como corregir error al ejecutar la siguiente macro
Cuando ejecuto la macro me arroja el siguiente mensaje:
Se ha producido error 91 en tiempo de ejecución
With Hoja6.ListObjects("Tabla2")
Uf = .ListRows.Count + 1
For I = 0 To ListBox1.ListCount - 1
.DataBodyRange(Uf, 1) = Format(ListBox1.List(I, 0), "mm-dd-yyyy")
.Range("B" & Uf) = txtNumeroFact
.Range("C" & Uf) = ListBox1.List(I, 2)
.Range("D" & Uf) = ListBox1.List(I, 3)
.Range("E" & Uf) = ListBox1.List(I, 4)
.Range("F" & Uf) = ListBox1.List(I, 5)
.Range("G" & Uf) = ListBox1.List(I, 6)
.Range("H" & Uf) = cboClientes.Value
.Range("I" & Uf) = cboCedula.Value
Uf = Uf + 1
Next I
End With:
Variable de objeto o bloque With no establecido
1 respuesta
Respuesta de Elsa Matilde
1