Tengo el código necesario para realizar un salto de celdas en una hoja. Pero
mi pregunta es la siguiente: ¿En que procedimiento debo meter este código
para que funcione correctamente? Mi intención es meterlo de alguna forma en
la propia hoja sin usar módulos. ¿Es posible?
APPLICATION.ONKEY "{ENTER}", SALTOLUGAR
'Enter normal
APPLICATION.ONKEY "{~}", SALTOLUGAR
'Tabulador
APPLICATION.ONKEY "{TAB}", SALTOLUGAR
Function SALTOLUGAR()
'Esta función tiene como objeto ayudar al usuario en el desplazamiento por
las celdas
C = ActiveCell.Column
R = ActiveCell.Row
Select Case C
Case 2
APPLICATION.Goto Cell(R, C + 1)
Case 3
APPLICATION.Goto Cell(R, C + 1)
Case 4
APPLICATION.Goto Cell(R, C + 2)
Case 6
APPLICATION.Goto Cell(R, C + 3)
Case 9
APPLICATION.Goto Cell(R, C + 1)
Case 10
APPLICATION.Goto Cell(R + 1, C - 8)
End Select
End Function
"Saber que se sabe lo que se sabe y que no se sabe lo que no se sabe; he
aquí el verdadero saber." Confucio.
Leer las respuestas