The following code will result in a
Type Mismatch error
and will highlight the Set Cnt = App...
line in yellow. I couldn't figure out what the problem is, I hope somebody can help me.
Dim Sel As Range
Set Sel = Selection
Sel.Offset(1, 2).Select
Range(Selection, Selection.End(xlDown)).Select
Dim Cnt As Variant
Set Cnt = Application.Selection.Cells.Count
Sel = Cnt.Value