+ Reply to Thread
Results 1 to 3 of 3

Generic macro to re-name the tab

  1. #1
    Registered User
    Join Date
    03-06-2013
    Location
    Troy, MI
    MS-Off Ver
    Excel 2007
    Posts
    0

    Generic macro to re-name the tab

    I want to create a macro to re-name the sheet/tab to a standard name, regardless of the current name of the tab. When using 'record macro', it requires that the current tab name be stated:
    Sheets("Current Name").Name = "NewName". Is there a way to make the command generic, like Sheets(Current Sheet).Name = "NewName" so that it will work in all cases? I will only use this on one-tab workbooks. Thanks

  2. #2
    Forum Contributor
    Join Date
    12-31-2012
    Location
    Jhang, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: Generic macro to re-name the tab

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-06-2013
    Location
    Troy, MI
    MS-Off Ver
    Excel 2007
    Posts
    0

    Re: Generic macro to re-name the tab

    Thanks. Apologies for duplicate posts - the system was timing/erroring out and I couldn't tell if they were posting or not.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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