[COLOR="Blue"]Private[/COLOR] [COLOR="Blue"]Sub[/COLOR] Worksheet_SelectionChange([COLOR="Blue"]ByVal[/COLOR] Target [COLOR="Blue"]As[/COLOR] Range)
[COLOR="Blue"]Dim[/COLOR] i [COLOR="Blue"]As[/COLOR] [COLOR="Blue"]Long[/COLOR]
[COLOR="Blue"]Dim[/COLOR] rng1 [COLOR="Blue"]As[/COLOR] Range, rng2 [COLOR="Blue"]As[/COLOR] Range
[COLOR="Blue"]If[/COLOR] [COLOR="Blue"]Not[/COLOR] Intersect(Target, Columns("C:C")) [COLOR="Blue"]Then[/COLOR]
[COLOR="Blue"]If[/COLOR] [COLOR="Blue"]Not[/COLOR] IsDate(Target) [COLOR="Blue"]Then[/COLOR]
[COLOR="Blue"]For[/COLOR] i = Target.Row [COLOR="Blue"]To[/COLOR] 1 [COLOR="Blue"]Step[/COLOR] -1
[COLOR="Blue"]If[/COLOR] IsDate(Cells(i, "C")) [COLOR="Blue"]Then[/COLOR]
[COLOR="Blue"]Set[/COLOR] rng1 = Cells(i, "C").Offset(1, 0)
[COLOR="Blue"]Exit[/COLOR] [COLOR="Blue"]For[/COLOR]
[COLOR="Blue"]End[/COLOR] [COLOR="Blue"]If[/COLOR]
[COLOR="Blue"]Next[/COLOR]
[COLOR="Blue"]For[/COLOR] i = Target.Row [COLOR="Blue"]To[/COLOR] Rows.Count
[COLOR="Blue"]If[/COLOR] IsDate(Cells(i, "C")) [COLOR="Blue"]Then[/COLOR]
[COLOR="Blue"]Set[/COLOR] rng2 = Cells(i, "C").Offset(-1, 0)
[COLOR="Blue"]Exit[/COLOR] [COLOR="Blue"]For[/COLOR]
[COLOR="Blue"]End[/COLOR] [COLOR="Blue"]If[/COLOR]
[COLOR="Blue"]Next[/COLOR]
[COLOR="Blue"]If[/COLOR] [COLOR="Blue"]Not[/COLOR] ((rng1 [COLOR="Blue"]Is[/COLOR] [COLOR="Blue"]Nothing[/COLOR]) [COLOR="Blue"]Or[/COLOR] (rng2 [COLOR="Blue"]Is[/COLOR] [COLOR="Blue"]Nothing[/COLOR])) [COLOR="Blue"]Then[/COLOR]
MsgBox "Range address is: " & Range(rng1, rng2).Address
[COLOR="Blue"]End[/COLOR] [COLOR="Blue"]If[/COLOR]
[COLOR="Blue"]End[/COLOR] [COLOR="Blue"]If[/COLOR]
[COLOR="Blue"]End[/COLOR] [COLOR="Blue"]If[/COLOR]
[COLOR="Blue"]End[/COLOR] [COLOR="Blue"]Sub[/COLOR]