+ Reply to Thread
Results 1 to 4 of 4

Add Range Name

  1. #1
    Registered User
    Join Date
    02-09-2009
    Location
    Northampton, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Add Range Name

    I have a list of Dynamic Range Names Staff1 to Staff20. As a new member of staff is added I want to add a range name using that persons name. I am using the following code to add the range name.
    NewName is calculated and = Staff1 for the first name added, staff2 for the next etc.
    The range name is created ie. Keith but when looking at the range names the refers to box shows ="Staff1"How do I get rid of the parenthesis?
    Please Login or Register  to view this content.
    Last edited by KeithB; 02-15-2009 at 06:34 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Add Range Name

    I don't get hem using this variation on your code. It's hard to check without your workbook.
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    02-09-2009
    Location
    Northampton, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Add Range Name

    Quote Originally Posted by royUK View Post
    I don't get hem using this variation on your code. It's hard to check without your workbook.
    Please Login or Register  to view this content.
    Thanks, that added the name without the parenthesis, however the range Staff1 was a dynamic range but the range name in my code only referred to a single cell. I found some code on another site and have modified it and put it in a module and now everything is fine. After creating the range name i run the function to convert it to a dynamic range. The function is:-
    Please Login or Register  to view this content.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Add Range Name

    Thanks for sharing your answer, maybe you could add a link to the web site.

+ 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