+ Reply to Thread
Results 1 to 3 of 3

Rename sheets VBA Code

  1. #1
    Forum Contributor
    Join Date
    02-17-2014
    Location
    INDIA
    MS-Off Ver
    Excel 2010
    Posts
    327

    Rename sheets VBA Code

    Hello friends..........
    I am in a problem i have a workbook and it contains huge sheets and Master sheet is the main sheet..........
    Data Sheet contains two button i.e. Commandbutton1 and Commandbutton2

    1. i want a code which will rename all sheets with the name of "Form" except "Master, Data, Summary and FormulaCheck"
    thats it

    2. Here i want again rename all sheets but at this time All sheet's Col-D5 have a number or text i want when i click on Commandbutton2 it replace all sheets name which already have name Form to Col-D5's value..............except "Master, Data, Summary and FormulaCheck"

    thats it
    Attached Files Attached Files

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Rename sheets VBA Code

    For (1), try:
    Please Login or Register  to view this content.
    For (2), try:
    Please Login or Register  to view this content.
    Do be aware you can only have one sheet with a given name.
    Last edited by macropod; 01-14-2019 at 04:35 AM.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    Forum Contributor
    Join Date
    02-17-2014
    Location
    INDIA
    MS-Off Ver
    Excel 2010
    Posts
    327

    Re: Rename sheets VBA Code

    Thankyou sir it is working flawless...........

+ 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] VB code to rename sheet and add sheets
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-26-2017, 05:36 PM
  2. [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
  3. Rename sheets
    By TonyBraxton in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-31-2015, 06:08 PM
  4. Replies: 2
    Last Post: 02-03-2015, 03:50 PM
  5. [SOLVED] Code to create new sheet and rename, regardless of any other sheets in workbook
    By csh8428 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-19-2012, 02:22 PM
  6. 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
  7. Replies: 2
    Last Post: 01-04-2006, 05:20 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