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.

Hacer scroll una una hoja hasta la fila grabada desde un formulario

publicado

Tengo un formulario que graba en la última fila vacía que se encuentra de la hoja "Datos". Quisiera que después de grabar el registro, o al cerrar el formulario, la hoja excel hiciese el scroll automáticamente para situarse en la fila en la que se ha grabado el registro. Lo que pretendo es que si lanzo el formulario cuando tengo en pantalla las filas 1 a 20 (por ejemplo), pero el registro se graba en la 300 (primera fila vacía), vea en pantalla dicha fila sin tener que ir a buscarla con el scroll.

Private Sub cmdRegistrar_Click()

Set TransRowRng = ThisWorkbook.Worksheets("Datos").Cells(1, 1).CurrentRegion

NewRow = TransRowRng.Rows.Count + 1

With ThisWorkbook.Worksheets("Datos")

.Cells(NewRow, 1).Value = oficina

.Cells(NewRow, 2).Value = cmbEmpleado

.Cells(NewRow, 3).Value = cmbTipocliente

.Cells(NewRow, 4).Value = dtpFecha

End With

GoTo fin

Exit Sub

fin:

Unload Me

ThisWorkbook.Worksheets("Datos").Activate

Featured Replies

publicado
  • Autor

Lo acabo de encontrar indirectamente en otro tema del foro. Simplemente añadiendo:

Worksheets("Datos").Range("b" & NewRow).Activate

Solucionado.

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.