Chart vs Sheet distinction
One way...
Dim wks As Worksheet
On Error Resume Next
Set wks = ActiveSheet
On Error GoTo 0
If wks Is Nothing Then
MsgBox "ChartSheet"
End If
--
HTH...
Jim Thomlinson
"Filo" wrote:
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!
|