+ Reply to Thread
Results 1 to 6 of 6

New sheet, new name, copy template

  1. #1
    Registered User
    Join Date
    04-09-2021
    Location
    Norway
    MS-Off Ver
    Office 2021
    Posts
    3

    New sheet, new name, copy template

    Hello,

    Im struggling abit.

    I want to make a button where I add a new sheet with a specific name. In this example, "App1".
    But I also want to copy a templatesheet to "App1".

    So when I run this it should make a sheet named App1 with the template.

    Im just missing the copy template line here,

    If I simply run
    Sheets("Template").Copy After:=Sheets(Sheets.Count)
    it adds yet another Sheet, which it shouldnt.

    Any ideas?





    Please Login or Register  to view this content.
    Last edited by AliGW; 04-09-2021 at 02:30 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,397

    Re: New sheet, new name, copy template

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. As you are new I will do it for you today.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    04-09-2021
    Location
    Norway
    MS-Off Ver
    Office 2021
    Posts
    3

    Re: New sheet, new name, copy template

    Thanks AliGW,

    Ill make it right next time around

    And hopefully there is an easy fix to my problemo

  4. #4
    Registered User
    Join Date
    04-09-2021
    Location
    Norway
    MS-Off Ver
    Office 2021
    Posts
    3

    Re: New sheet, new name, copy template

    Think I have to rewrite the entire code to make this happend.
    Worth to mention thats its my code in the first place.

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: New sheet, new name, copy template

    Please Login or Register  to view this content.
    Ben Van Johnson

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,397

    Re: New sheet, new name, copy template

    Administrative Note:

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. As you are new, I'll provide a link for you this time: https://ccm.net/forum/affich-1131755...-copy-template.)

    You really MUST read the forum rules BEFORE posting again here. Thank you.

+ 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] Copy template sheet to a new sheet with the code in the teimplate sheet
    By BRISBANEBOB in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-17-2018, 10:41 PM
  2. [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
  3. Master sheet into template, copy template to sheets named after master column.
    By M4R1N3R in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-26-2015, 12:24 PM
  4. Move data to new sheet and create copy of template sheet
    By jdm13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-25-2014, 01:53 PM
  5. Replies: 1
    Last Post: 01-04-2014, 06:37 PM
  6. Replies: 8
    Last Post: 02-26-2013, 01:00 AM
  7. [SOLVED] Copy a sheet (from template) to a new sheet, and rename (based on cell value)
    By Siglen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-30-2012, 10:19 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