Or...
If Typename(ActiveSheet) = "Worksheet" Then
' do your stuff
End If
- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. -
http://PeltierTech.com
_______
"Filo" <(E-Mail Removed)> wrote in message
news:FB882D7F-15A4-4C9A-9A85-(E-Mail Removed)...
> Hello-
>
> I would like a program to run only if the activeworksheet is not a
> chartsheet. Can you please help? I basically need something like:
>
> If activeworksheet is a chart then
> exit sub
> else
> ...code...
> end if
>
>
> Thank you!