Excellent !!! dguillett1 is what I need Thank you very much for your attention
Chilexcel 2012/3/15 dguillett1 <dguille...@gmail.com> > You may want to use this to total at the bottom of column E > > Option Explicit > Private Sub CommandButton1_Click() > > Dim tr As Integer > Dim b As Range > Dim lr As Long > tr = 2 > For Each b In Columns(1).SpecialCells(xlCellTypeBlanks) > With Cells(b.Row - 1, "e") > .Value = Application.Sum(Range(Cells(tr, 2), Cells(b.Row - 1, 2))) > .NumberFormat = "[h]:mm" > End With > tr = b.Row + 1 > Next > lr = Cells(Rows.Count, "e").End(xlUp).Row + 1 > With Cells(lr, "e") > .Value = Application.Sum(Range(Cells(2, 2), Cells(lr - 1, 2))) > .NumberFormat = "[h]:mm" > End With > > > > End Sub > > > Don Guillett > Microsoft MVP Excel > SalesAid Software > dguille...@gmail.com > > *From:* ChilExcel <chilexcel...@gmail.com> > *Sent:* Wednesday, March 14, 2012 3:38 PM > *To:* excel-macros@googlegroups.com > *Subject:* $$Excel-Macros$$ Sum hours weeks > > HELP !! please I need help with macro function that sum hours week . > > attached excel file > > For this example we use in January, but I need it for all months > > > thx all group > > > -- > Visita ; http://sites.google.com/site/chilexcel/Home > Visita ; http://www.youtube.com/user/timextag41 > > -- > FORUM RULES (986+ members already BANNED for violation) > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice > will not get quick attention or may not be answered. > > 2) Don't post a question in the thread of another member. > > 3) Don't post questions regarding breaking or bypassing any security > measure. > > 4) Acknowledge the responses you receive, good or bad. > > 5) Cross-promotion of, or links to, forums competitive to this forum in > signatures are prohibited. > > NOTE : Don't ever post personal or confidential data in a workbook. Forum > owners and members are not responsible for any loss. > > > ------------------------------------------------------------------------------------------------------ > To post to this group, send email to excel-macros@googlegroups.com > > -- > FORUM RULES (986+ members already BANNED for violation) > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice > will not get quick attention or may not be answered. > > 2) Don't post a question in the thread of another member. > > 3) Don't post questions regarding breaking or bypassing any security > measure. > > 4) Acknowledge the responses you receive, good or bad. > > 5) Cross-promotion of, or links to, forums competitive to this forum in > signatures are prohibited. > > NOTE : Don't ever post personal or confidential data in a workbook. Forum > owners and members are not responsible for any loss. > > > ------------------------------------------------------------------------------------------------------ > To post to this group, send email to excel-macros@googlegroups.com > -- Visita ; http://sites.google.com/site/chilexcel/Home Visita ; http://www.youtube.com/user/timextag41 -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com