Thanks for solutions- sorry took long to get back-
first solution:
If I input a number and hit enter- it goes to the right.
but if I don't input a number it does nothing. and if I am in cell with number I do not change it does not move either.
second solution:
it moves to the right but I can't even select a cell other than in the first row
any more ideas
Thank you
Well, if the second solution does that, its because you didnt define the boolean called Boo1 outside the sub, as a declaration. Or maybe you defined it in someother module, but not as a public variable.
The problem that solution has, is that no matter what, when you select a cell, you'll be selecting the one above and right from it. That's why i put the second suggestion.
With GetAsyncKeyState you can check if the key used to change the selection was the [enter] key, and in that case, run the code.