+ Reply to Thread
Results 1 to 3 of 3

Changing column name in named ranges

  1. #1
    Registered User
    Join Date
    10-31-2010
    Location
    London
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    56

    Changing column name in named ranges

    Hi All,

    I have some code to create multiple named ranges as below:

    Please Login or Register  to view this content.
    This code is though incomplete. What I want to happen is that as i loops from 1 to 2 all instances of $B:$B should change to $C:$C, as it moves to 3 all instances of $B:$B should change to $D:$D. So like below:

    When i = 2 the named range 12month_2 should be

    Please Login or Register  to view this content.
    When i = 3 the named range 12month_3 should be

    Please Login or Register  to view this content.
    Any ideas how this can be done?

    Thanks

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Changing column name in named ranges

    Try

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-31-2010
    Location
    London
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    56

    Re: Changing column name in named ranges

    Thank you very much Bob - worked like a charm!

+ 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