+ Reply to Thread
Results 1 to 2 of 2

Identifying objects, properties and other things

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

    Identifying objects, properties and other things

    Here is the first line of a FOR loop:

    For Each rw In Worksheets(1).Cells(1, 1).CurrentRegion.Rows

    1. Worksheets(1) is an object right?
    2. Cells (1,1). Is that a property of the Worksheets object?
    3. What is CurrentRegion, an object or property? An object or property of what?
    4. What is Rows, an object or property? An object or property of what?


    I always thought that you had an object, then within an object a property or method. I didn't think it was possible to go down to "a lower level" after the property or method.

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Identifying objects, properties and other things

    Please Login or Register  to view this content.
    Cells is a property of the Worksheet object that represents a range on the sheet (A1 in our case)
    CurrentRegion is a property of a Range object that represents another object Runge
    Rows is a property of the Range object, which represents all rows of a range.

    ie property provides an object or other property. You can specify some value for the property.
    The method is an action that is performed on the 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