+ Reply to Thread
Results 1 to 3 of 3

Macro to consolidate nonblank cells from multiple worksheets

  1. #1
    Registered User
    Join Date
    10-07-2008
    Location
    London
    Posts
    39

    Macro to consolidate nonblank cells from multiple worksheets

    Hi all,

    I have 5 different worksheets in a single workbook, one for each day of the week ('MON', 'TUE', etc). I would like to create a macro that looks between C6 and C500 on each of those sheets, and returns all nonblank values to a sixth worksheet ('SUMMARY') from B3 downwards. I've attached an example sheet.

    If possible, I would also like to grab corresponding values from the G and H columns in the daily sheets and drop them into the C and D columns in the summary sheet.

    My VBA knowledge is limited to simple modifications of other people's code, but I would be grateful for any level of assistance with this - thanks!

    Kevin
    Attached Files Attached Files
    Last edited by shockeroo; 06-11-2010 at 12:41 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Macro to consolidate nonblank cells from multiple worksheets

    I installed a macro called ConsolidateSheets into your workbook. The base code I tweaked from came from my website here:Then I put a worksheet_activate macro into your SUMMARY worksheet so that it calls that macro automatically every time you bring the SUMMARY up onscreen.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    10-07-2008
    Location
    London
    Posts
    39

    Re: Macro to consolidate nonblank cells from multiple worksheets

    That's great - thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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