+ Reply to Thread
Results 1 to 4 of 4

Loop through Worksheets find Value & Paste in another Worksheet, SUM values from Column

  1. #1
    Registered User
    Join Date
    09-14-2013
    Location
    Somewhere,there
    MS-Off Ver
    Excel 2003
    Posts
    2

    Loop through Worksheets find Value & Paste in another Worksheet, SUM values from Column

    PROBLEM SOLVE LOOK LAST POST

    Hi I have 12 Workboots (each for every month) name Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec
    These workbookts contains something like the following


    Name Days of Vacation Something Else#1 Something Else#2
    Mary 5 etc etc
    George 3
    John 12 etc etc
    Gary 13 etc etc

    I want something to loop through the months and copy all rows for mary in a summary sheet and sum the Days of Vacation from Column B in the lastrow+1

    Of course I dind't come here empty handed, but I can't advance any further.
    Could you help me?

    Please Note that The first Workbook has some data, the 2nd Workbook is the Jan and the 13 Workbook is the Dec, the 14t is the Summary Workbook

    Please Login or Register  to view this content.
    Last edited by Myth0S; 09-15-2013 at 05:15 PM.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Loop through Worksheets find Value & Paste in another Worksheet, SUM values from Colum

    Do you have 12 workbooks or 12 worksheets in a workbook? Please understand that there is a significant difference.

    Quote Originally Posted by Myth0S View Post
    Of course I dind't come here empty handed, but I can't advance any further.
    Did you write this code or is this another "I found it on the forum and it worked for someone else so i assumed it would work for me but I have no idea what it does" kind of things.

    No offense meant, I am just trying to understand.
    Last edited by stnkynts; 09-14-2013 at 12:03 PM.

  3. #3
    Registered User
    Join Date
    09-14-2013
    Location
    Somewhere,there
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Loop through Worksheets find Value & Paste in another Worksheet, SUM values from Colum

    I found the base of the code (how to copy from sheet) and tried to transform it into what I want it to do and partly it was successful. Sadly I can't transform it into exactly what I want it to do.

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Loop through Worksheets find Value & Paste in another Worksheet, SUM values from Colum

    I think you missed a question in my first post.

    Quote Originally Posted by stnkynts View Post
    Do you have 12 workbooks or 12 worksheets in a workbook?
    Secondly, assuming you meant worksheets, you said you have 12 of them. One for each month. But then you mentioned a summary sheet. Wouldn't that be 13 sheets not 12?

    Additionally, you only mention Mary. You don't mention how you want to choose Mary. Do we always apply the code to Mary? What about George, John, and Gary? We don't want them to be left out. They will end up hating Mary if we do. There will be office gossip about how she slept with this person or that person. People will give her dirty stares. I already feel bad for Mary. So, how should we tell it to pick the other people? Do you want an input box? Should we cycle through everyone?

    A little clarification on your end might prevent all the horrible verbal atrocities that are about to befall Mary.
    Last edited by stnkynts; 09-14-2013 at 06:51 PM.

  5. #5
    Registered User
    Join Date
    09-14-2013
    Location
    Somewhere,there
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Loop through Worksheets find Value & Paste in another Worksheet, SUM values from Colum

    Please Login or Register  to view this content.
    The above VBA code works fast and does the job needed.
    Last edited by Myth0S; 09-15-2013 at 05:16 PM.

+ 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. loop worksheets find date in cell activate worksheet
    By cdy3900 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-11-2013, 02:39 PM
  2. [SOLVED] Loop to Paste Values in a Different Column
    By nevi in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-01-2013, 05:52 PM
  3. Vba - find next empty column, insert column, copy paste values & copy paste formulas
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2012, 12:43 PM
  4. [SOLVED] Loop, Find, Copy, and Paste between multiple worksheets
    By bg_enigma1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-07-2012, 06:40 PM
  5. Loop to find cell, paste to new column. Turn 1 column into many.
    By d0tc0m in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-14-2011, 09:51 AM

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