I'm working on Excel 2007 macros where I have to select data in first column from range 0 to 300 , 300 to 600, 600 to 900 and so on incrementing 300.
Where the values of column H with respect to 0 to 300 should be sum and transfer to sheet2 and sum of values of 300 to 600 of H column transferred to sheet2 for all such cases.
I wish to create a button in Excel macro by pressing it transfer all data summing to sheet2. The picture below describes better about my case.

=SUM(Sheet1!H2:H8)and=SUM(Sheet1!H9:H10)and=SUM(Sheet1!H11:H13)in sheet 2