+ Reply to Thread
Results 1 to 8 of 8

Use list to input employee ID to template, copy it, and repeat next down in list

Hybrid View

wherdzik Use list to input employee ID... 05-14-2020, 11:38 AM
Logit Re: Use list to input... 05-14-2020, 12:19 PM
wherdzik Re: Use list to input... 05-14-2020, 12:25 PM
Logit Re: Use list to input... 05-14-2020, 01:48 PM
wherdzik Thank you so much I am at... 05-14-2020, 02:25 PM
Logit Re: Use list to input... 05-14-2020, 03:50 PM
wherdzik Re: Use list to input... 05-15-2020, 09:24 AM
Logit Re: Use list to input... 05-15-2020, 09:40 AM
  1. #1
    Forum Contributor
    Join Date
    11-19-2019
    Location
    Michigan
    MS-Off Ver
    Office 365
    Posts
    548

    Use list to input employee ID to template, copy it, and repeat next down in list

    Hello good people,

    I am building a basic dashboard, I have created a master template which I would like to first make copy of the template, input an employee ID in a certain cell and repeat for the next employee.

    Steps required:
    1. Make copy of Employee 2 worksheet ---(this is the master template).
    2. Grab first employee ID, located in A4 of the List worksheet.
    3. Repeat until end of list is completed.


    I have over 200 of these templates that I need to create so just looking for a way to eliminate calluses on my finger tips

    I have attached a file for reference.
    Thank you kindly.
    Attached Files Attached Files
    Last edited by wherdzik; 05-17-2020 at 09:30 AM. Reason: SOLVED

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,410

    Re: Use list to input employee ID to template, copy it, and repeat next down in list

    .
    So ...... what you will end up with, is the existing workbook with 200 individual sheets, each sheet is a template for the specific Employee Number.

    You are not needing the sheet tab name to be changed for each employee number ?

    Also, you have stated pasting the Employee ID Number in the appropriate location .... but not the name ?

  3. #3
    Forum Contributor
    Join Date
    11-19-2019
    Location
    Michigan
    MS-Off Ver
    Office 365
    Posts
    548

    Re: Use list to input employee ID to template, copy it, and repeat next down in list

    If you can make so that it names it with the employee ID that would be great.
    In my master document each individual tab will be named with the following naming convention.

    EmployeeID_LastName
    Eg. 11111_Smith

    If I can go into the code later and augmented for this format that would be great.

    thank you thank you!!!!!!

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,410

    Re: Use list to input employee ID to template, copy it, and repeat next down in list

    .
    Give me some time. Lots of projects going on at this time.

  5. #5
    Forum Contributor
    Join Date
    11-19-2019
    Location
    Michigan
    MS-Off Ver
    Office 365
    Posts
    548
    Thank you so much I am at your mercy I don't need this probably for another week or two until I have to migrate everything together because I don't actually have all the data feeds... Thank you kindly

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,410

    Re: Use list to input employee ID to template, copy it, and repeat next down in list

    .
    Paste in a REGULAR MODULE :

    Option Explicit
    
    Sub CopyMaster()
    Dim ws  As Worksheet, sh As Worksheet
    Dim Rws As Long, rng As Range, c As Range
    
    Set sh = Sheets("List")
    Set ws = Sheets("Template")
    
    Application.ScreenUpdating = False
        
        With sh
            Rws = .Cells(Rows.Count, "A").End(xlUp).Row
            Set rng = .Range(.Cells(2, 1), .Cells(Rws, 1))
        End With
        
        For Each c In rng.Cells
            
            If WorksheetExists(c.Value) Then
                MsgBox "Sheet " & c & " exists"
            Else:
                ws.Range("D4").Value = c.Value
                ws.Range("D5").Value = c.Offset(0, 1).Value
                ws.Copy After:=Worksheets(Worksheets.Count)
                Worksheets(Worksheets.Count).Name = c.Value & " - " & ws.Range("D5").Value
            End If
        
        Next c
        
        ThisWorkbook.Save
        
    Application.ScreenUpdating = True
    
    MsgBox "Process Complete !", vbInformation, "Task Progress"
    
    End Sub
    
    Function WorksheetExists(WSName As String) As Boolean
        
        On Error Resume Next
        WorksheetExists = Worksheets(WSName).Name = WSName
        On Error GoTo 0
        
    End Function
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    11-19-2019
    Location
    Michigan
    MS-Off Ver
    Office 365
    Posts
    548

    Re: Use list to input employee ID to template, copy it, and repeat next down in list

    All I have to say is wow. I wish I could do what you can do.
    Amazing. Thank you thank you!

  8. #8
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,410

    Re: Use list to input employee ID to template, copy it, and repeat next down in list

    .
    You are welcome.

+ 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] employee phone list template
    By Anne Troy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 PM
  2. [SOLVED] employee phone list template
    By Carol in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  3. employee phone list template
    By Anne Troy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 11:05 AM
  4. [SOLVED] employee phone list template
    By Carol in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  5. [SOLVED] employee phone list template
    By Anne Troy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 07:05 AM
  6. employee phone list template
    By Carol in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. employee phone list template
    By Carol in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  8. [SOLVED] employee phone list template
    By Carol in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-01-2005, 01:05 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