+ Reply to Thread
Results 1 to 4 of 4

When does Names.RefersToRange Property Fail?

  1. #1
    Forum Contributor
    Join Date
    02-09-2010
    Location
    Constanta
    MS-Off Ver
    Excel 2007
    Posts
    128

    When does Names.RefersToRange Property Fail?

    Greetings,

    I have created a dynamic name range called "Test" that refers to

    Please Login or Register  to view this content.
    I refer to this range in my code using the syntax

    Please Login or Register  to view this content.
    This works fine except when "Test" does not refer to a range, ie all cells are blank. I would like to know if there is anything else that will cause the "RefersToRange" property to fail. If not, then I plan to use this code when an error occurs

    Please Login or Register  to view this content.
    Thanks a lot
    Asha

    N.B. Due to the monsoons, the internet connection is unstable so may not be able to respond promptly to any follow up questions.
    Last edited by asha3010; 07-22-2010 at 09:07 AM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,976

    Re: When does Names.RefersToRange Property Fail?

    No it should work unless it's not a valid range (which could also be caused by deleting cell G1.)
    Everyone who confuses correlation and causation ends up dead.

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

    Re: When does Names.RefersToRange Property Fail?

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Contributor
    Join Date
    02-09-2010
    Location
    Constanta
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: When does Names.RefersToRange Property Fail?

    Thanks to all for your response.
    Asha

+ 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