If Obj.Left >= Pan.VisibleRange.Cells(1, 1).Left _
And Obj.Left + Obj.Width <= Pan.VisibleRange.Cells(1, Pan.VisibleRange.Columns.Count).Left _
+ Pan.VisibleRange.Cells(1, Pan.VisibleRange.Columns.Count).Width _
And Obj.Top + Obj.Height >= Pan.VisibleRange.Cells(1, 1).Top _
And Obj.Top <= Pan.VisibleRange.Cells(Pan.VisibleRange.Rows.Count, 1).Top _
+ Pan.VisibleRange.Cells(Pan.VisibleRange.Rows.Count, 1).Height Then Exit For