VBA to move from one cell to another cell

K

Khalil Handal

Hi,
Certain cells in a sheet needs to be filled with data. These cells are in
successive rows from 10 to 49
Data is filled in cell C10 then F10
after that cell C11 then F11
C12 and F12
until I reach C49 and F49
It is annoying to use the TAB key or the mouse to move to the next cell. Is
there a way to move to the next required cell just by pressing enter after
filling in the data.

i.e. data entered n cell C10 (press enter) go to cell F10, type the data
and press enter to go to C11,then F11 .....
 
G

Gord Dibben

One method

Unlock columns C and F. Protect the worksheet and use Tab key to move from C10
to F10 to C11 to F11 etc.


Gord Dibben MS Excel MVP
 
K

Khalil Handal

I didn't think of that. Still I need to see the content of cells in colomn
D. Hiding colomn E only will still not a practical solution.
 
G

Gord Dibben

Select both columns by CTRL + click

Format>Cells>Protection.

Uncheck "locked"

Tools>Protection>Protect worksheet.


Gord
 
K

Khalil Handal

Thanks. It worked fine.

Gord Dibben said:
Select both columns by CTRL + click

Format>Cells>Protection.

Uncheck "locked"

Tools>Protection>Protect worksheet.


Gord
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top