Results 1 to 5 of 5

Please simplify code to change the range for a name.

Threaded View

  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?

    With ActiveWorkbook.Names("graphdata")
            .Name = "graphdata"
            .RefersToR1C1 = _
            "=OFFSET('20.00'!R113C147,COUNT('20.00'!C147),0,-'20.00'!R105C244-1,1)"
        End With
    many thanks!
    Last edited by alansidman; 11-03-2017 at 05:32 AM.

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