Saltar al contenido
View in the app

A better way to browse. Learn more.

Ayuda Excel

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Programar columnas del listbox

publicado

saludos... la verdad es que he tratado de distintas formas y no he podido lograr lo siguiente:

cuando estoy en el userform de compras y le doy en el boton de siguiente, me filtra los item que

aun no tienen fecha de compra, y asi esta bien, lo que no he podido lograr es que en el listbox me aparezcan

las otras columnas como referencia y color.

muchas gracias

- - - - - Mensaje combinado - - - - -

... también me gustaría saber si hay alguna manera de llevar el consecutivo del item # de alguna forma ... ya que cuando cierro y abro el documento se reinicia el contador del item #...

Muchas Gracias. =)

subir.rar

Featured Replies

publicado

Hola:

Sustituya su procedimiento por este:



Private Sub CB_Compras_Siguiente_Click()

Application.ScreenUpdating = False
UF_Compras.MultiPage1.Value = 1
Sheets("COMPRAS").Select


[B][COLOR=#008000]'Columnas y tamaño[/COLOR][/B]
[COLOR=#0000cd][B]LB_Fcha_Compra.ColumnCount = 3
LB_Fcha_Compra.ColumnWidths = "50;60;40"[/B][/COLOR]


'listbox Fecha de compra
Range("a1").Select
Do While ActiveCell <> Empty
If ActiveCell.Offset(0, 6) = Empty Then
LB_Fcha_Compra.AddItem
LB_Fcha_Compra.List(LB_Fcha_Compra.ListCount - 1, 0) = ActiveCell
LB_Fcha_Compra.List(LB_Fcha_Compra.ListCount - 1, 1) = ActiveCell.Offset(0, 2)
LB_Fcha_Compra.List(LB_Fcha_Compra.ListCount - 1, 2) = ActiveCell.Offset(0, 3)
End If
ActiveCell.Offset(1, 0).Select
Loop


End Sub


[/CODE]

En cuanto a utilizar un [b][i]Id autonumérico[/i][/b]:

[CODE]ItemNo = Range("A" & Rows.Count).End(xlUp) + 1[/CODE]

Debe Vd. eliminar el texto [i][b]"Item #"[/b][/i] de la columna [b]"A"[/b], si no, no funcionará.

Saludos

PD. Le recomiendo utilizar nombres mas cortos en los controles Listbox/Combobox, de lo contrario, se va Vd a hinchar a escribir.

Archivado

Este tema está ahora archivado y está cerrado a más respuestas.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.