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.

Problemas al cambiar Combobox

publicado

Buen día a todos antes que nada, gracias a este foro que me ha ayudado ya en varias ocasiones,

esta vex tengo un problema con un combobox, al cambiar el valor no cambia los textbox a los que esta

vinculado.


Private Sub CbPaciente_Change()
'Encabezado
CbSesión = ""
TbDisciplina.Value = ""
TbEdad.Value = ""
TbSexo.Value = ""
TbFecha.Value = ""
TbSesión.Value = ""
End sub

Private Sub CbSesión_Change()
If CbSesión = "" Then Exit Sub
Application.ScreenUpdating = False
Hoja = CbPaciente.Value
Valor = CbSesión.Value

Set busca = Sheets(Hoja).Range("A5:FH34").Find(Valor, LookIn:=xlValues, lookat:=xlWhole)
If Not busca Is Nothing Then
Copiar = busca.Address
'Encabezado
Me.TbDisciplina.Text = Sheets(Hoja).Range(Copiar).Offset(0, 2).Value
Me.TbEdad.Text = Sheets(Hoja).Range(Copiar).Offset(0, 7).Value
Me.TbSexo.Text = Sheets(Hoja).Range(Copiar).Offset(0, 5).Value
Me.TbFecha.Text = Sheets(Hoja).Range(Copiar).Offset(0, 4).Value
Me.TbSesión.Text = Sheets(Hoja).Range(Copiar).Offset(0, 150).Value
End Sub

[/PHP]

Tengo alrededor de 160 columnas, ¿tendrá algo que ver?

Gracias por su ayuda, no tengo idea de que puede ser puesto que antes si me servia, de hecho hice otro archivo con menos columnas y este si funciona.

Featured Replies

No hay posts para mostrar

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.