+ Reply to Thread
Results 1 to 7 of 7

copy/move sheets and then repeat inserting next sheet below first

  1. #1
    Registered User
    Join Date
    02-23-2016
    Location
    Trinidad
    MS-Off Ver
    2013
    Posts
    11

    copy/move sheets and then repeat inserting next sheet below first

    Good Morning All. I am way out of my depth with this process and can use all the help I can get. I have a monthly employee worksheet "Monthly Data" that I need to generate
    payslips for, the employee worksheet is filled in by a userform along with all monthly information. This is where I get stuck, I want to create a payslip for each employee
    from "Monthly Data", I have a worksheet "Payslips" that has the layout I want to use for each employee. My question is how do I get vba to insert the first employee name
    from "Monthly Data" to "Payslips" copy/move the payslip to a new sheet and then repeat for any other names in the list below the first? Any guidance will be most helpful.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: copy/move sheets and then repeat inserting next sheet below first

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    02-23-2016
    Location
    Trinidad
    MS-Off Ver
    2013
    Posts
    11

    Re: copy/move sheets and then repeat inserting next sheet below first

    Uploaded the file but it doesn't appear in the attachment window to attach to the post
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-23-2016
    Location
    Trinidad
    MS-Off Ver
    2013
    Posts
    11

    Re: copy/move sheets and then repeat inserting next sheet below first

    The file is attached and what i want to do is in a comment box on sheet "Monthly Data"

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: copy/move sheets and then repeat inserting next sheet below first

    First,on sheet Payslips, unmerge cells A3:C3. This will not work with merged cells there


    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    02-23-2016
    Location
    Trinidad
    MS-Off Ver
    2013
    Posts
    11

    Re: copy/move sheets and then repeat inserting next sheet below first

    Thank You alansidman. Now I just have to get all the named tabs into one sheet

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: copy/move sheets and then repeat inserting next sheet below first

    Try this amended code
    Please Login or Register  to view this content.

+ 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. copy/move sheets and then repeat inserting next sheet below first
    By gdawson.tt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-25-2016, 10:43 AM
  2. [SOLVED] Need to copy/paste selection between sheets, move to next column and repeat
    By jwats in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-18-2015, 02:20 PM
  3. Replies: 0
    Last Post: 05-20-2014, 11:58 AM
  4. Macro - Copy/Paste certain cells and move down column and repeat
    By rohan87 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-16-2013, 02:02 AM
  5. Help, please: Copy rows to new sheets, then move row to new sheet when complete
    By dmrogers001 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-18-2012, 01:01 PM
  6. Select cells, copy, paste, move down one row repeat
    By tellerak in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-18-2009, 05:06 PM
  7. [SOLVED] Unable to move sheet after inserting it programmatically
    By Mike in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-17-2006, 02:20 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