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.

No acepta valor del ComboBox después de llamar a un Formulario

publicado

Buenos días a todos.

Desde un formulario1 y a través de un ComboBox voy a otro Formulario2 o Formulario3

El problema surje cuando vuelvo al Formulario1, y es que no me acepta de nuevo el valor

marcado por primera vez, ej. Formulario2

Adjunto el fichero para que veais más claro el problema.

Gracias anticipadamente

Ensacamo

Código Formulario 1

Private Sub ComboBox1_Enter()
Dim UltimaFila As Integer
On Error Resume Next
ComboBox1.Clear
Sheets("Hoja1").Select
Sheets("Hoja1").Activate
UltimaFila = Range("A1").End(xlDown).Row
For a = 1 To UltimaFila
Dato = Cells(a, 1)
ComboBox1.AddItem Dato
Next
End Sub
Private Sub ComboBox1_Change()
On Error Resume Next
If ComboBox1.ListIndex = 0 Then
UserForm1.Hide
UserForm2.Show
Else
UserForm1.Hide
UserForm3.Show
End If
End Sub[/HTML]

Código Formulario 2

[HTML]Private Sub CommandButton1_Click()
UserForm2.Hide
UserForm1.Show
End Sub[/HTML]

Código Formulario 3

[HTML]Private Sub CommandButton1_Click()
UserForm3.Hide
UserForm1.Show
End Sub[/HTML]

Prueba Formularios.xls

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.