+ Reply to Thread
Results 1 to 3 of 3

Duplicate Template sheet based on names in List sheet

  1. #1
    Forum Contributor
    Join Date
    09-16-2014
    Location
    Hyderabad
    MS-Off Ver
    MS Office 2021
    Posts
    347

    Duplicate Template sheet based on names in List sheet

    Hi all,

    Please find below-attached workbook which houses a macro that enables me to duplicate the Template sheet and rename them based on names in Col H in List sheet.

    However, I am looking for adjustment in the code, where I can select the names that get duplicated. To do this, I am looking at two ways:
    1) Either give me a drop-down box for picking the names, or
    2) If I can add an extra column "L" where I give "yes" and "no" and code creates only those sheets against whose name 'yes' exists.

    Also, I want to add error check, like, If I inadvertently selected a name whose sheets already exists, then instead of erring, let code create the sheet again with a suffix as excel usually does i.e., xyz(1), xyz(2) etc.

    Please help.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Duplicate Template sheet based on names in List sheet

    This does option 2; put yes in column L.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor
    Join Date
    09-16-2014
    Location
    Hyderabad
    MS-Off Ver
    MS Office 2021
    Posts
    347

    Re: Duplicate Template sheet based on names in List sheet

    @AlphaFrog

    Thanks a ton for timely help.

+ 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. Main sheet list of names need separate sheets of a template
    By channo01 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-11-2017, 06:48 PM
  2. Replies: 3
    Last Post: 05-18-2016, 09:51 AM
  3. [SOLVED] Copy Template Sheet and rename the new sheets based on a list in another sheet
    By SaadKiji in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-05-2016, 11:47 AM
  4. Replies: 3
    Last Post: 10-01-2014, 01:49 PM
  5. How to list names of all worksheets in my summary sheet And how to template a sheet?
    By liajet24 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2013, 07:10 PM
  6. [SOLVED] show a list of names on from sheet 1 in sheet 2 when marked active in sheet 1...???
    By stolen_83 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-11-2013, 04:57 PM
  7. Replies: 6
    Last Post: 11-05-2012, 10:04 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