Results 1 to 6 of 6

Thread: Copy Template Worksheet And Rename With Custom Name

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Moderator
    Join Date
    Jul 2012
    Posts
    156
    Rep Power
    14
    Change these lines
    Code:
    Sheets(SheetToCopy).Copy After:=Sheets(Sheets.Count)
    Sheets(Sheets.Count).Name = NameTest
    to this
    Code:
    Sheets(SheetToCopy).Copy After:=ActiveSheet
    ActiveSheet.Name = NameTest
    About the sharing-unsharing
    You could incorperate this in your code to perform this task automated, but then you should be shure you are the only user at that time otherwise it could get nasty.

  2. #2
    Member
    Join Date
    May 2013
    Posts
    84
    Rep Power
    13
    Once again

    Thank you, its spot on

    I think you are correct if its prone to failure to allow shared adding of sheets i will leave it as it is


    Thank you very much for helping me with this


    Peter

Similar Threads

  1. How to Add Custom List And Use in Custom Sorting
    By Transformer in forum Tips, Tricks & Downloads (No Questions)
    Replies: 0
    Last Post: 06-07-2013, 10:41 PM
  2. Replies: 1
    Last Post: 05-21-2013, 11:58 AM
  3. Dynamic Worksheet Generator Sheet Copy
    By mfaisalrazzak in forum Excel Help
    Replies: 2
    Last Post: 03-01-2013, 05:38 PM
  4. Print Nth Worksheet To Mth Worksheet using VBA
    By Ryan_Bernal in forum Excel Help
    Replies: 2
    Last Post: 02-28-2013, 06:57 PM
  5. Rename Filename Through VBA
    By Excel Fox in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 08-30-2011, 08:29 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •