Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Mon, 11 Apr 2011 13:31:54 -0400, "Rick Rothstein" wrote:
Any insight as to why the Enumerations for xlSheetType don't seem to match what is in Help? In particular, both the regular macro sheets and chart sheets return a type of 3? And the xlDialogSheet type doesn't support the Type property. I'm not sure what an xlDialogSheet is (apparently if is a left-over from Excel 5.0 which is before my time with Excel), so I cannot address that one. Does anyone still use them? As for your Help file question... let's be nice to Microsoft and simply say that sometimes they are wrong.<g I did notice that the Type for Macro and Chart sheets both evaluate to 3... that is definitely confusing as they are obviously different things completely. Sorry, I don't have insight as to why; but at least their collections are independent and individually enumerable, so that leaves an option to get around the problem. Rick Rothstein (MVP - Excel) The Dialog sheets were replaced by userforms, but they were useful back in the day. I suppose they are only used now by those who have to maintain "legacy" systems. Thanks for confirming my finding that the Help documentation is wrong. For some purposes, one could also use the TypeName function. That function classifies both kinds of Macro sheets as Worksheet; but seems to identify a DialogSheet and a Chart satisfactorily. Microsoft? Wrong? And here I thought it was "by design" :-| |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Type mismatch: array or user-defined type expected | Excel Programming | |||
Type Mismatch: array or user defined type expected | Excel Programming | |||
Type mismatch using rnge as Range with Type 8 Input Box | Excel Programming | |||
Help: Compile error: type mismatch: array or user defined type expected | Excel Programming |