Saltar al contenido

Show modal false

publicado

Hola.

Tengo un formulario con la propiedad ShowModal = false.

Esta propiedad me permite hacer click en cualquier celda pero necesito también poder desplazarme con las teclas arriba y abajo dentro de la hoja.

 

Muchas gracias

Featured Replies

publicado
  • Autor

Por si a alguien le sirve obtuve la solución.

Private Sub estimado_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
  If KeyCode = vbKeyUp Then
   ActiveCell.Offset(-1, 0).Select
  End If
  If KeyCode = vbKeyDown Then
   ActiveCell.Offset(1, 0).Select
  End If
  If KeyCode = vbKeyLeft Then
   ActiveCell.Offset(-0, -1).Select
  End If
  If KeyCode = vbKeyRight Then
   ActiveCell.Offset(-0, 1).Select
  End If
End Sub

saludos

Archivado

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