+ Reply to Thread
Results 1 to 4 of 4

Compare offset to a range variable

  1. #1
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Compare offset to a range variable

    I am wondering if there is a way to compare ranges instead of values. for example

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: Compare offset to a range variable

    Well, in your example, you're using a row offset of 1, so it could NEVER be column A. That may be throwing you off.

    Other than that, it works fine. I basically copy/pasted it into my workbook and it worked:

    Please Login or Register  to view this content.
    Going for Guru! Click the Star to the bottom left of this post if I helped!

  3. #3
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: Compare offset to a range variable

    If you notice, the msgbox always shows up no matter which cell you select.

  4. #4
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: Compare offset to a range variable

    Try this example, it should return False, yet it is returning true. any ideas?

    Please Login or Register  to view this content.

+ 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