+ Reply to Thread
Results 1 to 3 of 3

Add suffix to Tab Name if it already exists

  1. #1
    Registered User
    Join Date
    08-19-2012
    Location
    London, England
    MS-Off Ver
    Excel 2016 in Win 10
    Posts
    97

    Unhappy Add suffix to Tab Name if it already exists

    Hi All

    I have the code below which copies a tab and places it at the end and renames it with the current date.

    However, if the code identifies that the name already exists it just throws up an error.

    What I would like it to do is rename the tab and add a suffix at the end.

    Any ideas and help gratefully received

    Please Login or Register  to view this content.
    UPDATE

    By using the code below, it produces the new tab and renames it correctly but still shows the error :The name is already taken, try another"

    Please Login or Register  to view this content.
    Last edited by tigerdel; 11-19-2014 at 11:26 AM.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Add suffix to Tab Name if it already exists

    Try this:

    Please Login or Register  to view this content.

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Add suffix to Tab Name if it already exists

    You could use this
    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ 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. Prefix and Suffix Help
    By Scott Holmes in forum Excel General
    Replies: 3
    Last Post: 10-06-2015, 11:58 AM
  2. [SOLVED] If Sheet Name Already Exists, Add Suffix
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-05-2014, 06:10 PM
  3. [SOLVED] Changing a positive or negative value based on the input's suffix, then removing suffix
    By Theredwind in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-06-2014, 05:19 AM
  4. Add Suffix & Prefix
    By di22y in forum Excel General
    Replies: 1
    Last Post: 06-25-2009, 06:34 PM
  5. [SOLVED] I'd like to add a suffix...
    By Dr. Darrell in forum Excel General
    Replies: 4
    Last Post: 06-18-2005, 12:05 PM

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