+ Reply to Thread
Results 1 to 5 of 5

Errors occuring when creating a set of named ranges

  1. #1
    Registered User
    Join Date
    06-03-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    59

    Errors occuring when creating a set of named ranges

    I'm trying to make my worksheet generate a bunch of named ranges whenever it is activated.

    However, I'm getting a "Not a valid name" error on the line in red. The value of r is a string, so I really don't see what the issue is. Another time, I got a object defined error, but I think I've declared everyhing too. That line is very similar to the line above, and tends to work once (the first time around the loop). After that, I get the errors I mentioned.

    Please Login or Register  to view this content.
    If anyone could tell me what i'm doing wrong, I'd be greatful.
    Last edited by Kaigi; 07-10-2009 at 03:01 PM.

  2. #2
    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: Errors occuring when creating a set of named ranges

    What's in r when the code falls over?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-03-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    59

    Re: Errors occuring when creating a set of named ranges

    r = "TTC-SRT"

  4. #4
    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: Errors occuring when creating a set of named ranges

    A hyphen is not valid in a range name.

  5. #5
    Registered User
    Join Date
    06-03-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    59

    Re: Errors occuring when creating a set of named ranges

    :S ... ok well I should be able to change that.

    Thanks for the help.
    Last edited by Kaigi; 07-10-2009 at 03:01 PM.

+ 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