Results 1 to 5 of 5

Thread: Create copies of Worksheet (Master) based on a Range in another worksheet

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Dec 2019
    Posts
    8
    Rep Power
    0

    Create copies of Worksheet (Master) based on a Range in another worksheet

    Hello Experts

    A very happy New Year 2020 to all of you.

    I am creating a new MIS for my team of and need your help on it.

    I am using the below code to create the copies of a worksheet named "Master" around 20+ worksheets each month. I have a range of data in another Worksheet named "List of User" (Team members names) in column "K" say "K1:K25".

    The below code gives me any number of copies as I wish but, I need the new sheets to be named as per the Range in "List of User" Column "K" and it become dynamic so, that whenever a new name gets added to this list I need not worry while creating copies from the "Master" worksheet.

    Code:
    Public Sub DuplicateSheetMultipleTimes()
        Dim n As Integer
        On Error Resume Next
        n = InputBox("How many copies of the active sheet do you want to make?")
     
        If n >= 1 Then
            For numtimes = 1 To n
                ActiveSheet.Copy After:=ActiveWorkbook.Sheets(Worksheets.Count)
            Next
        End If
    End Sub
    Thanks all in Advance.
    Last edited by Deysam; 01-02-2020 at 03:18 PM.

Similar Threads

  1. Replies: 5
    Last Post: 08-17-2017, 08:12 AM
  2. Worksheet Tab Name Based on Cell Value
    By tuna666 in forum Excel Help
    Replies: 2
    Last Post: 10-08-2013, 10:41 PM
  3. 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
  4. Worksheet Change Event
    By jamilm in forum Excel Help
    Replies: 2
    Last Post: 12-29-2012, 12:06 AM
  5. Replies: 5
    Last Post: 12-05-2012, 03:01 AM

Posting Permissions

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