View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Alan Beban Alan Beban is offline
external usenet poster
 
Posts: 200
Default 2 Excel "truisms"

It's a nice sunny day and I'm sitting here with no place to go for the
next half hour, so I thought I'd try to engender some controversy over 2
xl "truisms".

The first is "There is no Cell (or Cells) object in Excel." I quite
understand that it is not documented as such by Microsoft, but my
conclusion is that if it looks like an object, waddles like an object
and quacks like an object, well . . . . The functionality of Excel seems
to treat Cells in every way (except the documentation) as an object with
the same properties and methods as any range. Can anyone envision
circumstances in which one could go wrong by disbelieving this "truism?

The second is "Ranges are not collections". In considering this I spent
some time trying to find a concise definition of a collection. I have
found a number of discussions and several descriptions, but no concise
definition by which one could functionally test the statement. I
propose: Collections are container objects whose members are a group of
like objects that are accessible by means of the collection's Item
Method. With this definition, Range("MyRange") is clearly a collection
object, as tested by Range("MyRange").Item(3).Value, which returns the
value of the third element of the range. Can anyone envision
circumstances in which one could go wrong relying on the above
definition? What is a concise alternative?

Have a nice day,
Alan Beban