+ Reply to Thread
Results 1 to 7 of 7

Naming Tabs

  1. #1
    Forum Contributor
    Join Date
    12-02-2014
    Location
    England
    MS-Off Ver
    2010 | 2016
    Posts
    167

    Naming Tabs

    Hi all,

    Currently I have a working module which activates sheets and renames them according to a table I have a user fill in prior to setting up the sheet.

    After some thought I have realised that the amount of sheets they require is a variable that my module doesn't allow for (currently the maximum is 9).

    I was wondering if it was possible to make the naming of the sheets dynamic, whilst all lead by one sheet, for example, I was considering maybe a button which adds a row to the table and then renames the tab "SpareX" X being the number of the spares.

    Just sounding out some thoughts, as it sits my sheet works, just looking to add an extra level of versatility in the future.

    Cheers.

  2. #2
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Naming Tabs

    I'm not really sure what the question is. Yes, renaming the sheets is possible, but you already know that because you've done it. Whether with a button or just triggered by sheet activity is up to you.
    Acts 4:12
    Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.

  3. #3
    Forum Contributor
    Join Date
    12-02-2014
    Location
    England
    MS-Off Ver
    2010 | 2016
    Posts
    167

    Re: Naming Tabs

    My VBA has a function to automatically add sheets.

    I'm wondering if I can add some automation toward the naming of sheets as a new one is added.

  4. #4
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: Naming Tabs

    Do you already have a function/sub to generate the name... if so..then you just need to add the sheet, tell it is the active sheet when adding and name it with the reference you wish -

    Sheets.Add After:=ActiveSheet
    ActiveSheet.Name = "SPAREnameFUNCTION/REFERENCE"
    -If you think you are done, Start over - ELeGault

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Naming Tabs

    Upload your workbook so that we can see your request in context.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  6. #6
    Forum Contributor
    Join Date
    12-02-2014
    Location
    England
    MS-Off Ver
    2010 | 2016
    Posts
    167

    Re: Naming Tabs

    I was thinking that the end user will need to need to specify the name of the sheet, I could achieve this with an InputBox perhaps?

    I'm just wanting the sheet to be as automated as can be, because the formulas on there are extremely sensitive.

  7. #7
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: Naming Tabs

    Like Richard said you should add it, and then clarify how the sheet Name would come to be. How would your end user know to add/name it. If there is logic then it is likely something that an end user need not be in control of. But this is something that requires elaboration and a sample/example to view and work with.

    Cheers

+ 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. Naming tabs
    By Amh in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 08-26-2012, 10:11 PM
  2. Naming the Tabs
    By inayat in forum Excel General
    Replies: 4
    Last Post: 09-19-2011, 05:19 AM
  3. Help with naming tabs
    By iasiddiqui in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-03-2006, 05:39 PM
  4. Naming Tabs
    By ebro in forum Excel General
    Replies: 3
    Last Post: 07-13-2006, 06:10 PM
  5. naming tabs
    By Jeff in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-06-2006, 12:45 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