Cambio automatico de celda en carga de datos

alexfiles

New Member
Joined
Jun 16, 2002
Messages
2
Hola.
Estoy usando una hoja Excel para carga de datos. Tengo 3 columnas:

Madrid
Barcelona
Sevilla

Cada columna carga 10 datos. Quiero que cuando se tipee el ultimo dato de la en la 1era columna (Madrid) (el dato esta en la fila 11, al darle enter el puntero pasa a la fila 12) dando a enter otra vez el puntero vaya a la Columna 2 (Barcelona) fila 2, listo a cargar datos.

Puede hacerse sin necesidad de recurrir a otra tecla mas que enter?


Muchas gracias

Alexis
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Se puede, pero con un macro. Se debe poner algo así en el módulo de la hoja que se esté cambiando.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row = 11 And Target.Column <= 3 Then
Cells(2, Target.Column + 1).Select
End If
End Sub
 
Upvote 0
Hola Pablo. Gracias por la formula anterior. Tenia varias opciones, pero la que me has dado es la que mejor funciona y mas clara me resulta. Gracias de nuevo.
Con respecto a esta macro, lo he probado pero no funciona. Estoy usando Excel en Español, version 2000 y la Hoja donde hago la carga se llama "Dataentry".
Segun tus instrucciones, pongo


Private Worksheet_Change(ByVal Target As Range)
If Target.Row = 11 And Target.Column <= 3 Then
Cells(2, Target.Column + 1).Select
End If
End Sub


y no funciona.

Que hago mal?

Un saludo y muchas gracias otra vez.
Alexis
 
Upvote 0

Forum statistics

Threads
1,216,731
Messages
6,132,396
Members
449,725
Latest member
Enero1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top