+ Reply to Thread
Results 1 to 7 of 7

Cells Method using Ranges

Hybrid View

  1. #1
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Cells Method using Ranges

    Imagine each range as a mini worksheet with it's own rows and columns.

    So when you have rngRows.Cells(1,2) the Cells(1,2) refers to a cell in the mini worksheet rngRows.

    Similarly with rowRng and mapRng.Rows, rowRng is referring to rows in the mini worksheet mapRng.

    PS For rngRow.Cells(1,2) you could actually use rngRow.Range("B1"), but that would just be confusing.

  2. #2
    Registered User
    Join Date
    07-30-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Cells Method using Ranges

    That is amazing! Thank you, thank you! That simple explanation made all the difference between me pretending to understand to actually understanding the code - and now I will be able to use it (not just muddle through it) in future macros!

    Thank you, again!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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