+ Reply to Thread
Results 1 to 3 of 3

Range Address Is Correct Columns Count Is Not Correct

  1. #1
    Forum Contributor
    Join Date
    01-07-2004
    Posts
    314

    Range Address Is Correct Columns Count Is Not Correct

    Hi all,

    Using Excel 2010,

    My snippet below is returning the correct range address $D:$M, but the wrong Columns.Count : 9 (Should be 10)
    Any ideas why that may be?

    thanks
    W

    Please Login or Register  to view this content.
    Full:
    Please Login or Register  to view this content.
    Kind regards,
    w

    http://dataprose.org

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Range Address Is Correct Columns Count Is Not Correct

    I'm not going to wade through all of that, but you set a reference to r3, and then resize r3. The reference, however, remains to the original range. For example,

    Please Login or Register  to view this content.
    Last edited by shg; 07-09-2013 at 12:55 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    01-07-2004
    Posts
    314

    Re: Range Address Is Correct Columns Count Is Not Correct

    Thanks shg,

    You nailed it. I was not aware of that. I thought the resize would change the original "With r"

    Thanks
    w

+ 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