+ Reply to Thread
Results 1 to 3 of 3

Match names and copy row to end of each row of a schedule

Hybrid View

  1. #1
    Registered User
    Join Date
    10-24-2013
    Location
    Arkansas
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Match names and copy row to end of each row of a schedule

    Please see sample worksheet.

    I'm looking to develop some code to delete the empty hidden rows in this worksheet and copy each person's schedule to the right of their name (so that the schedule is 8 weeks wide, instead of 4 weeks wide with 2 schedules on top of each other). Please note that the names are in different order and the bottom four week schedule has employees who are not on the top schedule.

    The code I'm working with right now to delete empty hidden rows is:

    Sub deleteBlankRows()
    On Error Resume Next
    Columns("A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
    End Sub

    Any help would be greatly appreciated!
    Attached Files Attached Files
    Last edited by alansidman; 10-24-2013 at 05:50 PM. Reason: code tags added

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,771

    Re: Match names and copy row to end of each row of a schedule

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE] [/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    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



    (I have added these for you. In the future, please read our rules and abide by them.)
    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
    10-24-2013
    Location
    Arkansas
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Match names and copy row to end of each row of a schedule

    Quote Originally Posted by Kflannagin View Post
    Please see sample worksheet.

    I'm looking to develop some code to delete the empty hidden rows in this worksheet and copy each person's schedule to the right of their name (so that the schedule is 8 weeks wide, instead of 4 weeks wide with 2 schedules on top of each other). Please note that the names are in different order and the bottom four week schedule has employees who are not on the top schedule.

    The code I'm working with right now to delete empty hidden rows is:

    Sub deleteBlankRows()
    On Error Resume Next
    Columns("A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
    End Sub

    Any help would be greatly appreciated!
    Bump no response

+ 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. Rotating Names in Work Schedule
    By DukeDiablo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-23-2013, 05:57 AM
  2. [SOLVED] Copy cell value from another Tab if names match up
    By Bergonse in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2013, 03:46 PM
  3. [SOLVED] Match names on one spreadsheet to the names on another then copy contents of another cell
    By TYOsborn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2013, 05:06 PM
  4. Copy rows that match values in a column of names
    By lunatyck in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-13-2012, 11:22 AM
  5. Match names in pivot table and copy value
    By SarahPintal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-02-2011, 09:53 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