G
G R E G
Hi,
The code below does not work for some reason.
This procedure is in worksheet "Sheet1"
Range("g46:h46") is two merged cells, perhaps this is the
reason? It is validated to have either "yes" or "no"
Thank you,
Greg
Private Sub Worksheet_SelectionChange(ByVal Target As
Range)
If Intersect(Selection, Range("g46:h46")) Is Nothing Then
Exit Sub
If Not Intersect(Selection, Range("g46:h46")) Is Nothing
Then
If Range("g46") = "NO" Then
Sheets("Detail").Activate
Sheets("Detail").Range("b13:A43").BorderAround _
ColorIndex:=3, Weight:=xlThick
MsgBox "You may overwrite dates here" ,, "Optional"
Sheets("Detail").Range("b13:A43").Borders.LineStyle =
xlLineStyleNone
Sheets("Sheet1").Activate
End If
End If
End Sub
The code below does not work for some reason.
This procedure is in worksheet "Sheet1"
Range("g46:h46") is two merged cells, perhaps this is the
reason? It is validated to have either "yes" or "no"
Thank you,
Greg
Private Sub Worksheet_SelectionChange(ByVal Target As
Range)
If Intersect(Selection, Range("g46:h46")) Is Nothing Then
Exit Sub
If Not Intersect(Selection, Range("g46:h46")) Is Nothing
Then
If Range("g46") = "NO" Then
Sheets("Detail").Activate
Sheets("Detail").Range("b13:A43").BorderAround _
ColorIndex:=3, Weight:=xlThick
MsgBox "You may overwrite dates here" ,, "Optional"
Sheets("Detail").Range("b13:A43").Borders.LineStyle =
xlLineStyleNone
Sheets("Sheet1").Activate
End If
End If
End Sub