+ Reply to Thread
Results 1 to 5 of 5

Please simplify code to change the range for a name.

  1. #1
    Registered User
    Join Date
    10-22-2017
    Location
    ENGLAND
    MS-Off Ver
    2016
    Posts
    35

    Please simplify code to change the range for a name.

    This code successfully changes the range for name "graphdata", but is this the simplest way to do it?
    (I got it from running a macro.)
    Also, how do I convert it from R1C1 to normal A1 format?

    Please Login or Register  to view this content.
    many thanks!
    Last edited by alansidman; 11-03-2017 at 05:32 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: Please simplify code to change the range for a name.

    You can just set your range in VBA and name it as well.

    Please Login or Register  to view this content.
    if you wanted to offset it you would just offset it.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-22-2017
    Location
    ENGLAND
    MS-Off Ver
    2016
    Posts
    35
    Thanks for the info. It is very helpful.
    I have a large number of names that i need to keep changing, for my graphs. Is there a simple one line code to do this e.g. name("example"). value=example ?

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: Please simplify code to change the range for a name.

    I don't no what "name("example"). value=example " means.

  5. #5
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Please simplify code to change the range for a name.

    You should only actually require
    Please Login or Register  to view this content.
    though I don't see why you need to keep changing them if they are dynamic ranges like that one?
    Don
    Please remember to mark your thread 'Solved' when appropriate.

+ 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. How to simplify Multiple ComboBox Change Event code
    By Faridwahidi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-24-2016, 05:00 AM
  2. [SOLVED] Simplify code
    By KBSH in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-05-2016, 03:20 PM
  3. [SOLVED] My code is not dynamic; it has a pre-defined range. Possible to change code?
    By mick0005 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-20-2015, 10:23 PM
  4. How to simplify code?
    By RaquelAR in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-28-2013, 07:30 AM
  5. [SOLVED] How to simplify the VBA code from function to send rows into send range
    By herukuncahyono in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-13-2013, 03:11 AM
  6. [SOLVED] Simplify VBA Code
    By Sky188 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-28-2012, 02:31 PM
  7. Help to Simplify VBA code
    By Lostinexcel2002 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-02-2008, 02:21 AM

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