Fantastic work , Rajan , I am very grateful was what I needed thank you very much
Chilexcel 2012/4/27 Rajan_Verma <rajanverma1...@gmail.com> > HI**** > > Please try this Code **** > > *Worksheet Is attached * > > ** ** > > Sub MakeTotal()**** > > **** > > Dim rngSumRange As Range**** > > Dim wksSheet As Worksheet**** > > Dim rngCell As Range**** > > **** > > Set wksSheet = ThisWorkbook.Worksheets("Hoja1")**** > > With wksSheet**** > > *Set rngSumRange = Union(Intersect(.UsedRange, > .UsedRange.Offset(14)).Columns(9), Intersect(.UsedRange, > UsedRange.Offset(14)).Columns(21)).SpecialCells(xlCellTypeBlanks)* > > For Each rngCell In rngSumRange**** > > * If rngCell.Offset(-1).Value <> "" Then* > > rngCell.Offset(-1, 1).Formula = "=Sum(" & > rngCell.Offset(-1).CurrentRegion.Columns(9).Address & ")"**** > > End If**** > > Next**** > > End With**** > > End Sub**** > > ** ** > > ** ** > > ** ** > > *From:* excel-macros@googlegroups.com [mailto: > excel-macros@googlegroups.com] *On Behalf Of *ChilExcel > *Sent:* Apr/Fri/2012 04:55 > *To:* excel-macros@googlegroups.com > *Subject:* $$Excel-Macros$$ Sum_Hours week**** > > ** ** > > HELP !! please I need help with macro that sum hours week .**** > > attached excel file > > For this example i use March and July , 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