+ Reply to Thread
Results 1 to 5 of 5

Create New Worksheets and Rename Them according to List in Another workbook

  1. #1
    Registered User
    Join Date
    02-13-2014
    Location
    FL, United States
    MS-Off Ver
    Excel 2007
    Posts
    33

    Post Create New Worksheets and Rename Them according to List in Another workbook

    Hi everyone!

    I'd like to create a macro that creates new worksheets based on a template called "Aircraft Survey Template" (basically copies this sheet) after the last sheet on my current workbook and renames it according to a list in another workbook called "Aircraft Tail No." The list in the other workbook begins from cell C3 but that list is constantly updated with new numbers if planes are added.

    To summarise: I'd like the macro to create new sheets in my current workbook after the last sheet and rename them according to the tail numbers in the other workbook mentioned. If a sheets with the same name already occur in the current workbook then they should be left alone and not overwritten with the template "Aircraft Survey Template".

    Any help would be greatly appreciated. Thanks!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,558

    Re: Create New Worksheets and Rename Them according to List in Another workbook

    So, would you have us create a workbook, create a template, make up a list of planes on another sheet and THEN create the maco that you want/need, test it and upload it? And then you can perhaps tell us that actually, it doesn't look anything like we imagined it would ...

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    02-13-2014
    Location
    FL, United States
    MS-Off Ver
    Excel 2007
    Posts
    33

    Post Re: Create New Worksheets and Rename Them according to List in Another workbook

    Hi TMshucks!

    I apologize for the lack of information. But I've attached sample workbooks with this post. Hope it helps. However,I did forget to mention a point in my previous post though. I'd like the tail number to also be copied to cell E6 in the new worksheet once it's renamed by the tail number. Thanks so much! Your assistance is greatly appreciated!

    Regards,
    Hackboss007
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Create New Worksheets and Rename Them according to List in Another workbook

    Hi Reuben,

    Try the attached workbook. I used the 'Tail Number File' exactly as you posted.

    There are 3 new command buttons on 'Sheet3':
    a. Add new Tail Number Sheets.
    b. Delete all Tail Number Sheets starting with 'N" (needed for s**tware testing).
    c. Sort all Tabs (sheets) in ascending order (after ignoring the first 3).

    Lewis

    The code follows (independent ** all previous code):
    Please Login or Register  to view this content.
    NOTE: There is a problem with ExcelForuml.com on March 8, 2014 that universally changes all combinations ** 'o' and 'f' next to each other to '**'.
    Administrators are aware ** the problem and are working on correcting the problem.
    Attached Files Attached Files
    Last edited by LJMetzger; 03-08-2014 at 04:51 PM. Reason: Added '**'.

  5. #5
    Registered User
    Join Date
    02-13-2014
    Location
    FL, United States
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Create New Worksheets and Rename Them according to List in Another workbook

    Quote Originally Posted by LJMetzger View Post
    Hi Reuben,

    Try the attached workbook. I used the 'Tail Number File' exactly as you posted.

    There are 3 new command buttons on 'Sheet3':
    a. Add new Tail Number Sheets.
    b. Delete all Tail Number Sheets starting with 'N" (needed for s**tware testing).
    c. Sort all Tabs (sheets) in ascending order (after ignoring the first 3).

    Lewis

    The code follows (independent ** all previous code):
    Please Login or Register  to view this content.
    NOTE: There is a problem with ExcelForuml.com on March 8, 2014 that universally changes all combinations ** 'o' and 'f' next to each other to '**'.
    Administrators are aware ** the problem and are working on correcting the problem.
    Thanks so much! This code works flawlessly!

    Best wishes,
    Reuben

+ 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] Create and rename worksheets as per cell range
    By alf40 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-13-2013, 01:56 AM
  2. Macro to Create Worksheet 'xxxx' and list All Worksheets in Workbook
    By R_S_6 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-02-2009, 08:58 AM
  3. create macro to rename worksheets in other folders
    By alanda in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-06-2009, 12:53 PM
  4. Rename all worksheets in workbook
    By stewartz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-12-2005, 11:47 AM
  5. Replies: 5
    Last Post: 03-24-2005, 03:06 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