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 se actualizan los datos de la pagina 1 al abrir el formulario multipagina

publicado

Buenas tardes;

 

Hoy he estado probando con los formularios con página múltiple y me falla algo.

 

Cuando abro el formulario en la pagina 1, el contenido de la pagina 1 no se me actualiza, solo se actualiza cuando cambio de pagina.

 

Podría duplicar las líneas de la pagina 1 en el “UserForm_Initialize()” pero seguro que hay una mejor forma.

 

Me podéis ayudar??.

 

Líneas de la macro:

 -----

Private Sub MultiPage1_Change()

Select Case MultiPage1.Value

Case 0

Label2 = Now

Case 1

futuro = Now + 15

Label1 = futuro

End Select

End Sub

 ---------

Private Sub UserForm_Initialize()

MultiPage1.Value = 0

End Sub

 

Gracias de antemano.

Prueba multipagina.xlsm

Featured Replies

publicado

A como lo veo, lo único que necesitas es agregar Label2 = Now en initialize; ya que por como lo tienes solo se calcula la hora al momento de un evento change. Por eso al abrir la forma se queda con el texto por default.

image.png.3fb8da7b0e17bc30b80ae142a94bf13c.png

Editado el por Manuel_Mendoza
cambio de simbolo

publicado

Solución 1:

Private Sub UserForm_Initialize()
MultiPage1.Value = 0
MultiPage1_Change
End Sub

 

Solución 2:

Private Sub UserForm_Initialize()
MultiPage1.Value = 1
MultiPage1.Value = 0
End Sub

 

publicado
  • Autor

todas las opciones funcionan perfectamente.

muchisimas gracias :)

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.