+ Reply to Thread
Results 1 to 4 of 4

Need macro help with copying data to a summary sheet

  1. #1
    Registered User
    Join Date
    05-24-2018
    Location
    Canada
    MS-Off Ver
    Office 2010
    Posts
    7

    Need macro help with copying data to a summary sheet

    Hi there,

    Please see attached document.

    I am currently building a biweekly document that assigns work based on task selected along with other variables. I am running into trouble figuring out how to give users the option to click a macro button at the end of the data to transfer the relevant data to a summary sheet at the front of the document. The summary sheet records the user, the date, the task assigned, and how much was assigned so it can be matched at a later date when completed.

    I have a hack job macro built to copy data using a global variable and the concatenate function to bring over the data, which was kind of working, but now is causing problems as I had to add functionality to the spreadsheet. I had to use three separate macros in the document, one for the "Monday" spreadsheet as it has no "sick" column, one for every other sheet that did have the extra, and one for the "FridaySpecial" as it mostly manual entry that effects the "Friday" sheets.

    The problem is that the Macro is breaking randomly, or breaking if Monday isn't used (global variable) and how I had to add in the OT work functionality makes it so it summarizes weirdly on the summary page. The summary thing isn't the end of the world, but I can't figure out how to get it work differently.

    I am sorry, I am still new to the VBA world, but I gave it my best shot. Is there a whole method of doing this that I am missing? Any help would be much appreciated! If I didn't explain things well, please let me know!

    Thanks,

    -Catalyst
    Attached Files Attached Files

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Need macro help with copying data to a summary sheet

    In each Loop, you left off one qualified object (item) for the date copy.

    I added a next row function. You can remove the global.

    Also, you can reuse Task instead of creating another Task2 object. (But I left it as is.)

    Try this.
    Please Login or Register  to view this content.
    David
    (*) Reputation points appreciated.

  3. #3
    Registered User
    Join Date
    05-24-2018
    Location
    Canada
    MS-Off Ver
    Office 2010
    Posts
    7

    Re: Need macro help with copying data to a summary sheet

    This is great! Thank you!

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

    Re: Need macro help with copying data to a summary sheet

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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

+ 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. copying data to summary sheet from multiple tabs
    By Plux in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2018, 01:43 PM
  2. Help with basic copying and pasting data to a summary sheet
    By chrismoid in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-05-2017, 01:54 PM
  3. Replies: 0
    Last Post: 03-27-2012, 04:54 PM
  4. Copying data from separate worksheets to one summary sheet
    By Ivor in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-27-2011, 12:58 PM
  5. Copying a template sheet and putting those multiple sheets data into a summary sheet
    By John Wolfe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-18-2011, 06:29 PM
  6. copying data from sheets in workbook to summary sheet in same
    By Nets in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-19-2009, 03:49 PM
  7. copying and paste data from each worksheet to a summary work sheet
    By mary in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-21-2005, 02:06 PM

Tags for this Thread

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