+ Reply to Thread
Results 1 to 4 of 4

Understanding the Excel Object Model; ActiveCell as an example

  1. #1
    Forum Contributor
    Join Date
    12-15-2009
    Location
    Herndon, VA
    MS-Off Ver
    Excel 2010
    Posts
    163

    Question Understanding the Excel Object Model; ActiveCell as an example

    The following webpage seems to imply that ActiveCell is a property of the Application object.
    http://msdn.microsoft.com/en-us/libr...ffice.11).aspx

    The attached Word file contains a screen shot of the Object Browser. I have ActiveCell selected. At the bottom it seems to indicate that ActiveCell is a property of the Range object. So is ActiveCell a property of the Range object or the Application object?

    1. How do you read the descriptions at the bottom? Another example, under the Global class, select Date and it says property Date as Variant. What does this mean?

    2. How do classes tie into objects?
    Attached Files Attached Files

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Understanding the Excel Object Model; ActiveCell as an example

    Interesting question.

    ActiveCell is a property of both Application and Window.

    It is a Range Object, a special range - the Selected cell on the active worksheet of the active workbook

    run:

    Please Login or Register  to view this content.
    Gary's Student

  3. #3
    Forum Contributor
    Join Date
    12-15-2009
    Location
    Herndon, VA
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Understanding the Excel Object Model; ActiveCell as an example

    That is where I am confused. How could something be a property and an object at the same time?

  4. #4
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Understanding the Excel Object Model; ActiveCell as an example

    You are correct!

    ActiveCell is an Object (a Range Object)
    ActiveCell (like all ranges) has properties
    The Address property of ActiveCell is a string variable
    The Parent property of ActiveCell is a worksheet (which itself is an Object)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1