
Signature
HTH
RP
(remove nothere from the email address if mailing direct)
Thanks for your reply Bob. unfotuntatel, I get a syntax error
with the line
FormatConditions.Add Type:=xlExpression
Formula1:="=" & Target.Address & "=" &
Any ideas ??
Thanks
Stevie.
>Here is one way
>
[quoted text clipped - 17 lines]
>'code module. To do this, right-click on the sheet tab, select
>'the View Code option from the menu, and paste the code in.
Norman Jones - 18 Jun 2005 22:38 GMT
Hi Steve,
Bob's code has benn assaulted by the line wrap demon. Try this attempt at
thwarting the demon's attentions:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Const myRange As String = "A1:E60"
If Target.count = 1 Then
If Not Intersect(Target, Range(myRange)) Is Nothing Then
With Range(myRange)
.FormatConditions.Delete
.FormatConditions.Add Type:=xlExpression, _
Formula1:="=" & Target.Address & "=" & _
Target.Address(False,
False)
.FormatConditions(1).Interior.ColorIndex = 3
End With
End If
End If
End Sub
---
Regards,
Norman
> Thanks for your reply Bob. unfotuntatel, I get a syntax error
> with the line
[quoted text clipped - 30 lines]
>>'code module. To do this, right-click on the sheet tab, select
>>'the View Code option from the menu, and paste the code in.
Bob Phillips - 18 Jun 2005 23:25 GMT
LOL. So did your attempt Norman. It's a real PITA.
Regards
Bob
> Hi Steve,
>
[quoted text clipped - 55 lines]
> >>'code module. To do this, right-click on the sheet tab, select
> >>'the View Code option from the menu, and paste the code in.
Norman Jones - 18 Jun 2005 23:36 GMT
Hi Bob,
And that was with me TRYING!
---
Regards,
Norman
> LOL. So did your attempt Norman. It's a real PITA.
>
[quoted text clipped - 62 lines]
>> >>'code module. To do this, right-click on the sheet tab, select
>> >>'the View Code option from the menu, and paste the code in.
Bob Phillips - 18 Jun 2005 22:38 GMT
One day I will crack wrap-around! Try this version
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Const myRange As String = "A1:E60"
If Target.Count = 1 Then
If Not Intersect(Target, Range(myRange)) Is Nothing Then
With Range(myRange)
.FormatConditions.Delete
.FormatConditions.Add Type:=xlExpression, _
Formula1:="=" & Target.Address & "=" &
_
Target.Address(False, False)
.FormatConditions(1).Interior.ColorIndex = 3
End With
End If
End If
End Sub

Signature
HTH
RP
(remove nothere from the email address if mailing direct)
> Thanks for your reply Bob. unfotuntatel, I get a syntax error
> with the line
[quoted text clipped - 29 lines]
> >'code module. To do this, right-click on the sheet tab, select
> >'the View Code option from the menu, and paste the code in.
STEVIE - 18 Jun 2005 23:06 GMT
Thanks Bob - you are a real star.
I really appreciate your kind help with this. You are a genius.
Thanks again.
>One day I will crack wrap-around! Try this version
>
[quoted text clipped - 13 lines]
> End If
>End Sub