+ Reply to Thread
Results 1 to 5 of 5

Summation where range vary using Macro

  1. #1
    Registered User
    Join Date
    07-12-2011
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    4

    Summation where range vary using Macro

    Hi,

    I was able to create a macro to sum up a range of every page but that was fixed only on specific numberof rows. The problem arises when size of the rows on every page vary and the result of the sum will not be the actual value of every page rather the sum up is overlapped or shortened. Sumif is better but during submission to our client, every page should come with a simple summation.

    Here is the code I use.

    Please Login or Register  to view this content.
    I am attaching the sample of my worksheet. Im pretty sure there is a way to do it but I dont know how Please help

    Thanks,
    Attached Files Attached Files
    Last edited by halogen_bulb; 11-15-2011 at 05:24 AM. Reason: post code

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Summation where range vary using Macro

    Your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us help you!

    Read this to understand why we ask you to do this

    http://www.msofficeforums.com/excel/...ing-macro.html

  3. #3
    Registered User
    Join Date
    07-12-2011
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    4

    Talking Re: Summation where range vary using Macro

    I apologize for cross posting. but let me close this thread since I was able to come up the solution I need using Excel Forum and other forums. Here is the code I gathered by combining there codes

    Please Login or Register  to view this content.
    I will use this site to update my thread from those forums.

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,056

    Re: Summation where range vary using Macro

    Either mark this thread solved or comply with the request to add links to your cross-posts, please.
    Everyone who confuses correlation and causation ends up dead.

  5. #5
    Registered User
    Join Date
    07-12-2011
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    4

+ 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