+ Reply to Thread
Results 1 to 5 of 5

Sheet Names not added correctly to Report Summary Page

  1. #1
    Registered User
    Join Date
    04-23-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    41

    Sheet Names not added correctly to Report Summary Page

    Hi,

    The attached file contains a stripped down version of a report summary. As a novice I am just not getting the iteration code right so that at the end of each row brought to the Report page has its sheet name added in a final column (column N). It seems to be looping but not capturing the correct sheet name i.e. It is doing 1st, 2nd, 3rd Sheet then 1st, 2nd, 3rd Sheet again rather than 1st , 2nd, 2nd, 3rd, 3rd, 3rd Sheets.

    Any help would be appreciated thank you.
    Attached Files Attached Files
    Last edited by Sorjas; 07-18-2014 at 06:23 AM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Sheet Names not added correctly to Report Summary Page

    Hi Sorjas

    Try this Code
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    04-23-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Sheet Names not added correctly to Report Summary Page

    Thank you John. The rewritten code has worked a treat and I am very grateful.

    From my understanding and it maybe wrong lol.

    1. This line of code is adding the sheet name in the loop:
    Please Login or Register  to view this content.
    2. I notice when stepping through the lines of code the rows are copied to the report tab and only the first row of each sheet has the sheet name added. The code then calls routine Fill_Blanks which appears to go back and look at what cells are blank in column N (missing the sheet name) and adds these below the last row above that has that sheet name?

    If I have not understood the way the code you have kindly provided is actually working, please let me know. Thank you once again!

    Darren

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Sheet Names not added correctly to Report Summary Page

    Hi Darren

    Your analysis of what the Code is doing is correct.

    You're welcome...glad I could help. Thanks for the Rep.

  5. #5
    Registered User
    Join Date
    04-23-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Sheet Names not added correctly to Report Summary Page

    Solved - please delete post.
    Last edited by Sorjas; 07-22-2014 at 02:18 AM.

+ 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. Help creating Summary Page w/ user defined sheet names
    By gophil1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-31-2012, 07:35 AM
  2. Macro to Generate a Report on a Summary Page
    By jabce85 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2011, 04:57 PM
  3. Form Email from Report, Only if Report summary sheet lists Acct for that Sales Rep
    By lukep10 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2008, 01:38 PM
  4. Replies: 1
    Last Post: 05-22-2006, 03:35 PM
  5. Same cell added to master summary sheet
    By Bruce Fry in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-22-2005, 10:06 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