+ Reply to Thread
Results 1 to 2 of 2

Cycle through worksheets and sum

  1. #1
    David M C
    Guest

    Cycle through worksheets and sum

    I want to write some VBA to cycle through all worksheets in a workbook and
    copies the value 4 cells across from the one that contains "Total" into Row B
    of my totals workshets, and also the value in cell D10.

    Ideas?

    Thanks

    Dave

  2. #2
    Bob Phillips
    Guest

    Re: Cycle through worksheets and sum

    To loop through all the worksheets

    For Each sh In Activeworkbook.Worksheets
    ....
    Next sh

    To find "Total", look at the Find method in VBA help.

    To offset by 4 cells, use

    Offset(0,4)

    The value in D10 can be addressed directly

    Range("D10").Value

    --

    HTH

    Bob Phillips

    (remove nothere from the email address if mailing direct)

    "David M C" <[email protected]> wrote in message
    news:[email protected]...
    > I want to write some VBA to cycle through all worksheets in a workbook and
    > copies the value 4 cells across from the one that contains "Total" into

    Row B
    > of my totals workshets, and also the value in cell D10.
    >
    > Ideas?
    >
    > Thanks
    >
    > Dave




+ 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