+ Reply to Thread
Results 1 to 5 of 5

ActiveWorkbook.Names.Add - using Cell Value as an input to "RefersTo"

  1. #1
    Forum Contributor
    Join Date
    02-22-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    102

    ActiveWorkbook.Names.Add - using Cell Value as an input to "RefersTo"

    i would require the input for "RefersTo" to be taken from a call value. The following code does not work. Can i get help with right syntax / logic please..

    Please Login or Register  to view this content.
    So "Cat" should refer to A2:A25

    Thanks.

  2. #2
    Forum Contributor
    Join Date
    02-22-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    102

    Re: ActiveWorkbook.Names.Add - using Cell Value as an input to "RefersTo"

    Apologies for typing the code wrongly

    i would require the input for "RefersTo" to be taken from a call value. The following code does not work. Can i get help with right syntax / logic please..
    Please Login or Register  to view this content.
    So "Cat" should refer to A2:A25

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: ActiveWorkbook.Names.Add - using Cell Value as an input to "RefersTo"

    Hi,

    Amend in part to:

    Please Login or Register  to view this content.
    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Forum Contributor
    Join Date
    02-22-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    102

    <<Resolved>>Re: ActiveWorkbook.Names.Add - using Cell Value as an input to "RefersTo"

    Most perfect. Thanks.

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: ActiveWorkbook.Names.Add - using Cell Value as an input to "RefersTo"

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. replace all defined range names in the sheet that start with "Street" to "Road"
    By matrex in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 11-04-2016, 08:53 AM
  2. Replies: 17
    Last Post: 08-18-2015, 08:51 PM
  3. [SOLVED] Reverse personal names from "First Last" to "Last, First" and accommodate middle names
    By MrGadget6977 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-17-2013, 07:10 PM
  4. Excel Function that differentiates "male" from "female" names with 900+ names
    By doylehargrove in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-17-2012, 06:00 PM
  5. Set the "RefersTo" property of Named Ranges
    By m3atball in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-19-2010, 02:51 PM

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