+ Reply to Thread
Results 1 to 4 of 4

Need a Macro to rename part of all named ranges on a sheet

  1. #1
    Registered User
    Join Date
    04-28-2015
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365
    Posts
    60

    Need a Macro to rename part of all named ranges on a sheet

    I need a macro to rename part of all named ranges on only one sheet in a workbook just part of the name text from "S1" to "S2".

    Therefor leaving the remainder text of the names intact.

    So that "Range_S1" Becomes "Range_S2" e.g. i.e it will change only the names on that sheet with S1 in them and replace with S2

  2. #2
    Valued Forum Contributor
    Join Date
    11-26-2012
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    419

    Re: Need a Macro to rename part of all named ranges on a sheet

    This might work - hard to know without seeing the spreadsheet:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-28-2015
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365
    Posts
    60

    Re: Need a Macro to rename part of all named ranges on a sheet

    Can you use wildcards, I only want to change the S1 to S2 rather than overwriting the whole name.

  4. #4
    Valued Forum Contributor
    Join Date
    12-14-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    439

    Re: Need a Macro to rename part of all named ranges on a sheet

    Try this
    Please Login or Register  to view this content.

+ 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. [SOLVED] Looping through named ranges to rename them
    By JimDandy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-28-2017, 11:55 AM
  2. [SOLVED] Copy part of text from file name and use it to rename sheet
    By mattyfaz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2015, 11:20 PM
  3. Finding the named ranges that the active cell is a part of
    By HitTheEXCELerator in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-04-2015, 12:35 AM
  4. [SOLVED] To copy rows from one sheet to other sheets based on the first part of the named cell
    By JamesJohnson31 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-30-2014, 12:38 AM
  5. [SOLVED] VBA: Are named ranges a part of a collection?
    By Miraun in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-28-2014, 07:11 AM
  6. I have 2 named ranges on 1 sheet and 1 named range on another..
    By niceguy21 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-05-2013, 06:08 AM
  7. Copying named ranges from one sheet to another
    By Mark Stephens in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-04-2005, 10:05 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