+ Reply to Thread
Results 1 to 9 of 9

Dynamically change sheet name

  1. #1
    Registered User
    Join Date
    02-14-2017
    Location
    Hilversum, Netherlands
    MS-Off Ver
    2010
    Posts
    92

    Dynamically change sheet name

    Hi Guys!

    The code I have written below is supposed to activate/select a worksheet that is standing in the range AC28 (as it should be dynamic). In this case AC28 refers to the sheet name 7.
    When I try to change the sheetname of sheet '7' to the value of N1 it does not work.

    Please Login or Register  to view this content.
    Can anyone help me out how to change the sheetname from to the value of N1?

    (At the moment even the selecting/activating of the sheet does not work, and it has to be dynamic)

    Thank you guys so much!

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Dynamically change sheet name

    Try this.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: Dynamically change sheet name

    Good afternoon Jstns

    bakerman2's solution didn't work for me. Try this :
    Please Login or Register  to view this content.
    HTH

    DominicB

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Dynamically change sheet name

    Or this:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Dynamically change sheet name

    Maybe:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    02-14-2017
    Location
    Hilversum, Netherlands
    MS-Off Ver
    2010
    Posts
    92

    Re: Dynamically change sheet name

    All of the solutions worked!! Thank you guys for your quick replies and commitment to this forum!

  7. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Dynamically change sheet name

    You're welcome and thanks for rep+.

    If this answers your question please mark thread as SOLVED.
    Last edited by bakerman2; 08-18-2017 at 03:42 AM.

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Dynamically change sheet name

    You're welcome. Glad to help out and thanks for the feedback and the reps.

  9. #9
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Dynamically change sheet name

    You're welcome and thanks for the rep!

+ 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. Replies: 3
    Last Post: 04-16-2020, 07:43 PM
  2. Dynamically Change Formula
    By CraigMcKee in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-27-2016, 10:22 AM
  3. Change source of pivot table dynamically based on sheet name
    By jeroenft in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-03-2016, 11:23 AM
  4. Replies: 11
    Last Post: 01-20-2015, 09:34 AM
  5. Replies: 0
    Last Post: 06-22-2014, 04:18 PM
  6. Change percentage -> dynamically change price
    By dmb41 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-12-2013, 11:26 AM
  7. How to Dynamically Change Charts
    By PosseJohn in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-17-2010, 08:30 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