+ Reply to Thread
Results 1 to 5 of 5

Summary sheet to refer to cell on multiple sheets (always same column, but row# can vary)

  1. #1
    Forum Contributor
    Join Date
    10-03-2015
    Location
    North Carolina, USA
    MS-Off Ver
    Office 365
    Posts
    167

    Summary sheet to refer to cell on multiple sheets (always same column, but row# can vary)

    Hi Everybody,

    I found some code from Ron de Bruin that creates a Summary sheet form all worksheets. Of course, it works perfectly, but I want to modify it slightly to meet my needs. In his example code, he has it referring to:

    Please Login or Register  to view this content.
    I tried modifying to point to a different range, but it throws an error. Here is the modification I made:

    Please Login or Register  to view this content.
    My goal with the above code is to refer to the cell two rows below the last cell with continuous data in column M on every sheet in the workbook.

    Here is the entire sample code provided by Ron without modification:

    Please Login or Register  to view this content.
    All help is greatly appreciated!

    Carlos

  2. #2
    Forum Contributor
    Join Date
    05-12-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    266

    Re: Summary sheet to refer to cell on multiple sheets (always same column, but row# can va

    i think this is all you need:

    Please Login or Register  to view this content.
    the for each myCell loop is not usefull when refering to only one cell in a sheet.

  3. #3
    Forum Contributor
    Join Date
    10-03-2015
    Location
    North Carolina, USA
    MS-Off Ver
    Office 365
    Posts
    167

    Re: Summary sheet to refer to cell on multiple sheets (always same column, but row# can va

    Hi SjonR, and thank you for your reply, but it does not achieve what I am trying to do.

    I have several project sheets with data (about 30 or so sheets). The code that I found on Ron de Bruin's site creates a summary sheet for the data in all of the other project sheets. This is perfect. Next, I want to retrieve data from some cells in all of the project sheets to present on the new summary sheet. In Ron's sample code, he points to ("A1,D5:E5,Z10"), and it works perfectly. Unfortunately, those cells are not the ones that I want to reference on my project sheets. Instead, I want the code to point to the cell two rows below the last cell with continuous data in column M on every project sheet in the workbook.

    Each project sheet has various values in column M. So, it might look like: Header = Backlog, cell M2 contains 4, cell M3 contains 5, and then M4 is blank, and M5 contains the sum of the values in M2 and M3 which = 9. The number of rows varies from sheet to sheet, so the sum of values in column M on the next sheet might sit in cell M22, and the sheet after that, the sum might sit in cell M18.

    I want the code to find the sum of the values for column M on each sheet, and return that value to my summary sheet.

  4. #4
    Forum Contributor
    Join Date
    05-12-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    266

    Re: Summary sheet to refer to cell on multiple sheets (always same column, but row# can va

    An example file Will help us a lot.

  5. #5
    Forum Contributor
    Join Date
    10-03-2015
    Location
    North Carolina, USA
    MS-Off Ver
    Office 365
    Posts
    167

    Re: Summary sheet to refer to cell on multiple sheets (always same column, but row# can va

    Sorry for the delayed response ... I cannot reply to posts on this forum (even though I can create new posts!)

    I played around with the code some more, and I was able to make it work. Here it is:

    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. Replies: 2
    Last Post: 12-09-2015, 05:43 AM
  2. Replies: 1
    Last Post: 12-20-2013, 07:05 AM
  3. Replies: 2
    Last Post: 10-08-2013, 02:58 PM
  4. [SOLVED] Summary sheet - copy cell contents from multiple sheets to one summary sheet
    By jsmity in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2013, 10:32 AM
  5. macro to copy column A from multiple sheets onto summary sheet
    By fabrecass in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-31-2012, 05:46 PM
  6. Create a summary from multiple sheets on a master/summary sheet
    By detribus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2012, 08:04 PM
  7. Replies: 0
    Last Post: 03-27-2012, 04:54 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