Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
mfp mfp is offline
external usenet poster
 
Posts: 1
Default activesheet: chart or worksheet?

How do I tell whether the activesheet is a chart or a worksheet. I don'
want crappy code (i.e. on error....). It would be smooth if there was
sheet property that would let you know what kind of sheet you wer
dealing with (chart or worksheet) - does such a thing exist? Cheers
Mik

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default activesheet: chart or worksheet?

Try,

Typename( activesheet)

it will return Chart or Worksheet

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"mfp " wrote in message
...
How do I tell whether the activesheet is a chart or a worksheet. I don't
want crappy code (i.e. on error....). It would be smooth if there was a
sheet property that would let you know what kind of sheet you were
dealing with (chart or worksheet) - does such a thing exist? Cheers,
Mike


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default activesheet: chart or worksheet?

It worked out beautifully - thanks a lot

--
Message posted from http://www.ExcelForum.com

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check Activesheet for chart sheet or work sheet NSK Charts and Charting in Excel 1 July 17th 07 09:00 PM
name of the activesheet rasta Excel Programming 1 October 3rd 03 09:49 PM
ActiveSheet.Name? Andrew Stedman Excel Programming 5 July 30th 03 01:17 PM
ActiveSheet Graham[_3_] Excel Programming 0 July 30th 03 09:08 AM
ActiveSheet Ron de Bruin Excel Programming 0 July 29th 03 04:59 PM


All times are GMT +1. The time now is 07:43 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"