Again so sorry I used your code and it works great, i added another sub and
here is that
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.ScreenUpdating = False
If Not rngPrev Is Nothing Then rngPrev.Interior.ColorIndex = idxPrev
Set rngPrev = Target
idxPrev = rngPrev.Interior.ColorIndex
rngPrev.Interior.ColorIndex = 6
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
'player 1
If Target.Address = "$A$10" Then Range("U10").Select
If Target.Address = "$C$10" Then Range("w19").Select
If Target.Address = "$E$10" Then Range("Y28").Select
If Target.Address = "$G$10" Then Range("AA37").Select
If Target.Address = "$I$10" Then Range("ac46").Select
end sub
the problem is this
I enter a value in A10 and hit tab the cursor moves to c10 and then onto u10
changes the color of u10 correctly but jumps back to c10. do you have any
idea why it may be doing this
"Don Guillett" wrote:
> >>AND SO ON
>
> no need to SHOUT! I'm still confused since mind reading is not one of my
> talents but, in the absence of a better explanation from you, in the
> worksheet_CHANGE event.
>
> =if target.address="$d$3" then range("c3").select
> =if target.address="$d$5" then range("gxxx").select
> and so on
>
> I'm sure it could be simplified.
>
> --
> Don Guillett
> SalesAid Software
> (E-Mail Removed)
> "Nigel" <(E-Mail Removed)> wrote in message
> news:40E61E88-F59D-41BA-902C-(E-Mail Removed)...
> > not sure what more info is needed, user exits cell d3 I would like cursor
> > to
> > go to d33
> >
> > then they can select cell d4 make an entry and cursor will then go to c3
> >
> > then they select d5 make an entry and on exiting it will go to gXX and so
> > on
> >
> > Cells are paired for example A10 is related to U10m B10 is related to W19
> > AND SO ON
> >
> > "Don Guillett" wrote:
> >
> >> You can do this with a worksheet_change macro in the sheet code.
> >> right click sheet tab>view code>left window select worksheet>right select
> >> worksheet_change
> >>
> >> more info needed but this is the basic idea
> >>
> >> target.offset(30).select
> >>
> >>
> >> --
> >> Don Guillett
> >> SalesAid Software
> >> (E-Mail Removed)
> >> "Nigel" <(E-Mail Removed)> wrote in message
> >> news:7EE9B253-4207-4F23-BA9F-(E-Mail Removed)...
> >> > Is it possible to program so that when a users exits a cell he/she is
> >> > forced
> >> > to another cell, ie when leaving d3 the cursor will got to d33
> >> >
> >> > I know about cell protection etc but that will not do what I would like
> >> >
> >> > Thanks
> >>
> >>
> >>
>
>
>