+ Reply to Thread
Results 1 to 8 of 8

Summary report from multiple worksheets

  1. #1
    Forum Contributor
    Join Date
    08-19-2009
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    147

    Summary report from multiple worksheets

    Hi all,

    I am trying to create a summary report (I have attached an example of how i would like it to look) that draws information in from multiple work worksheets.

    All of the project highlights will be kept in the same folder. I have attached a copy of the project highlight report.

    I would like to get it where i open the summary report, run the macro and it draws in information from each of the project highlights. (There will be different amounts of project highlights and with different names but they will all be in the same folder)

    Can someone help me with if this is doable and any help with the code (i'm not great at vba and all help would be appreciated)

    Many thanks,

    C
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-19-2009
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    147

    Re: Summary report from multiple worksheets

    Anyone seen anything similar?

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Summary report from multiple worksheets

    When you run the macro a 2nd time, should the results from the 1st run be cleared out and fresh data input? Or should the fresh data be input at the end of the 1st run?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Forum Contributor
    Join Date
    08-19-2009
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    147

    Re: Summary report from multiple worksheets

    When the macro is run it should clear out the results from the first run and fresh data should be inported. Thanks for looking at it.

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Summary report from multiple worksheets

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose Tools | Macro | Macros
    Select a macro in the list, and click the Run button
    Last edited by arlu1201; 06-19-2012 at 05:54 AM. Reason: Code changes

  6. #6
    Forum Contributor
    Join Date
    08-19-2009
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    147

    Re: Summary report from multiple worksheets

    Hi Arlette,

    Almost perfet thanks. Only problem is when it initialy copies information it puts it into the summary report in row 4. Then when i re-run the macro it doesnt clear this information out properly. Any ideas? Ive tried changing the cell references in the code but it didn't have the effect i was after

  7. #7
    Forum Contributor
    Join Date
    08-19-2009
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    147

    Re: Summary report from multiple worksheets

    Hi Arlette. Ive tried it a couple of times and it works. Ignore the post above. The first time you run the macro it does something strange but then everytime after it works fine. Thanks for your help with this. Really appreciated

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Summary report from multiple worksheets

    I have made some changes to the code in post 5. Try it now, it should be more reliable .

+ 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