Check Selection

  • Thread starter Thread starter Chris Gorham
  • Start date Start date
C

Chris Gorham

Hi,

I want to make sure that when I write code such as
activecell.select that the macro doesn't bug out because
an object such as a chart happens to be currently selected
on the s/sheet and not a cell range.

thks...Chris
 
Well, no because Typename(ActiveCell) returned "Nothing" if the activated
object was a chart.
Looks like one and the same for the purpose as stated.
 
You're right, Tim ... that's interesting. I thought it would throw an error.
I should have tested before I posted!

Regards,

Vasant.
 
Back
Top