Professional Documents
Culture Documents
codigo.Value = txt_codigo.Text
titulo.Value = txt_titulo.Text
autor.Value = txt_autor.Text
resumen.Value = txt_resumen.Text
stock.Value = txt_stock.Text
cantidad.Value = txt_cantidad.Text
stock.EntireRow.Insert
End Sub
888888888888888888888888888888888888888888888888888888888888888888888888888888
txt_codigo.Text = ""
txt_titulo.Text = ""
txt_autor.Text = ""
txt_resumen.Text = ""
txt_stock.Text = ""
txt_cantidad.Text = ""
End Sub
8888888888888888888888888888888888888888888888888888888888888888888888888888
valor_buscado = Me.txt_codigo
linea = fila.Row
888888888888888888888888888888888888888888888888888888888888888888888
Dim i As Long
ListBox1.Clear
ListBox1.AddItem
For a = 4 To 9
ListBox1.List(0, a - 4) = Hoja1.Cells(4, a)
Next a
ListBox1.ColumnHeads = False
For j = 4 To 9
ListBox1.AddItem
For X = 4 To 9
ListBox1.List(ListBox1.ListCount - 1, X - 4) = Hoja1.Cells(i, X)
Next X
End If
Next j
Next i
End Sub
8888888888888888888888888888888888888888888888888888888888888888888888888888888
txt_codigo = ListBox1.List(ListBox1.ListIndex, 0)
txt_titulo = ListBox1.List(ListBox1.ListIndex, 1)
txt_autor = ListBox1.List(ListBox1.ListIndex, 2)
txt_resumen = ListBox1.List(ListBox1.ListIndex, 3)
txt_stock = ListBox1.List(ListBox1.ListIndex, 4)
txt_cantidad = ListBox1.List(ListBox1.ListIndex, 5)
Me.txt_codigo.Value = txt_codigo
End Sub
}888888888888888888888888888888888888888888888888888888888888888888888888888888
codigo = LISTA.List(LISTA.ListIndex, 0)
titulo = LISTA.List(LISTA.ListIndex, 1)
autor = LISTA.List(LISTA.ListIndex, 2)
resumen = LISTA.List(LISTA.ListIndex, 3)
stock = LISTA.List(LISTA.ListIndex, 4)
cantidad = LISTA.List(LISTA.ListIndex, 5)
Me.txt_codigo.Value = codigo
Me.txt_titulo.Value = titulo
Me.txt_autor.Value = autor
Me.txt_resumen.Value = resumen
Me.txt_stock.Value = stock
Me.txt_cantidad.Value = cantidad
End Sub
88888888888888888888888888888888888888888888888888888888888888
cbx_autor.List = Worksheets("autor").Range("A2:A6").Value
End Sub