+ Reply to Thread
Results 1 to 5 of 5

delete and rename sheets

  1. #1
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    delete and rename sheets

    hi,

    how do you?

    first
    1. delete all sheets in the workbook that has a "2" at the end of its sheet name

    then
    2. rename all sheets that has no "2" at the end of its sheet name to having a "2" at the end of its name
    ex:
    sheet name "aaa" renamed to "aaa2"

    3. but ignore the sheet named "DATA" - do not rename

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: delete and rename sheets

    Hi
    try this:

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Re: delete and rename sheets


    Edit : too late, Nicky was quicker !
    Last edited by Marc L; 02-16-2017 at 10:42 PM.

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,519

    Re: delete and rename sheets

    Give this a try

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  5. #5
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    Re: delete and rename sheets

    thank you nicky and mike!

+ 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] Loop worksheets and if sheets Name matches pattern, rename sheets
    By dluhut in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-23-2016, 01:08 AM
  2. Code to delete sheets and rename sheets in a protected workbook?
    By leaning in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-07-2011, 03:02 AM
  3. [SOLVED] ADD, RENAME AND DELETE COLUMNS using ADO
    By Paramasivan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-16-2005, 05:05 AM
  4. HOW DO I DELETE A WORKSHEET IN EXCEL? NOT HIDE IT OR RENAME IT
    By deborah.hill in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  5. HOW DO I DELETE A WORKSHEET IN EXCEL? NOT HIDE IT OR RENAME IT
    By deborah.hill in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02: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