+ Reply to Thread
Results 1 to 7 of 7

Store summary calculations for each worksheet in a single worksheet

Hybrid View

  1. #1
    Registered User
    Join Date
    09-03-2012
    Location
    Virginia
    MS-Off Ver
    excel 2010
    Posts
    18

    Store summary calculations for each worksheet in a single worksheet

    Hi. I have a workbook with many worksheets as follows:

    Summary Calculations aapl goog msft....etc

    The Calculations sheet does all the calculations but only on one stock at a time.
    So I am hoping for a macro that does the following:

    1. Calculations Sheet: Clears all data in columns A through E
    2. 1st sheet to right of Calculations sheet: Copies all data in columns A through E and paste into Calculations Sheet (A through E).
    3. Summary Sheet: Store results of calculations sheet (H1 through Q1) in (B2 through J2) of summary sheet.
    4. Summary Sheet: Store Sheet name into first cell of row on summary sheet. (B1 for first run)
    5. Loop through remaining sheets storing the calculations each time into the next open row on the summary sheet.

    Thank you for any help you can give me.
    Attached Files Attached Files
    Last edited by rgilpatric; 11-04-2012 at 03:14 PM.

  2. #2
    Registered User
    Join Date
    09-03-2012
    Location
    Virginia
    MS-Off Ver
    excel 2010
    Posts
    18

    Re: Store summary calculations for each worksheet in a single worksheet

    I did not actually include the formulas on the calculations page of the attached file because it did not seem important to the macro

  3. #3
    Registered User
    Join Date
    09-03-2012
    Location
    Virginia
    MS-Off Ver
    excel 2010
    Posts
    18

    Re: Store summary calculations for each worksheet in a single worksheet

    I suspect there is probably a better way to do this but I don't know VBA.

  4. #4
    Registered User
    Join Date
    09-03-2012
    Location
    Virginia
    MS-Off Ver
    excel 2010
    Posts
    18

    Re: Store summary calculations for each worksheet in a single worksheet

    I just realized that the calculations step can take up to 15-20 seconds for each worksheet. I don't know if that will affect how I do it?

  5. #5
    Registered User
    Join Date
    09-03-2012
    Location
    Virginia
    MS-Off Ver
    excel 2010
    Posts
    18

    Re: Store summary calculations for each worksheet in a single worksheet

    Bump no response

  6. #6
    Registered User
    Join Date
    09-03-2012
    Location
    Virginia
    MS-Off Ver
    excel 2010
    Posts
    18

    Re: Store summary calculations for each worksheet in a single worksheet

    This is what I have so far just recording a macro. Two things: It doesn't paste into the next open row and I have to repeat the process for each individual sheet. I have about 50 sheets that need to be recalculated each day. I am hoping someone can help me with a macro that loops for all sheets.


    Sub Pract1()
    '
    ' Pract1 Macro
    '
    ' Keyboard Shortcut: Ctrl+Shift+P
    '
        Columns("A:E").Select
        Selection.Copy
        Sheets("Calculations").Select
        Columns("A:E").Select
        ActiveSheet.Paste
        Range("I1:Q1").Select
        Application.CutCopyMode = False
        Selection.Copy
        Sheets("summary").Select
        Range("B2:J2").Select
        Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
    End Sub

  7. #7
    Registered User
    Join Date
    09-03-2012
    Location
    Virginia
    MS-Off Ver
    excel 2010
    Posts
    18

    Re: Store summary calculations for each worksheet in a single worksheet

    Do I need more detail?

+ 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