Guest User

Untitled

a guest
Apr 12th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1.  
  2.  
  3. Sub weeksummary()
  4. '
  5. ' weeksummary Macro
  6. '
  7.  
  8. '
  9.  
  10.  
  11. ActiveSheet.Unprotect
  12. Range("C301:E301").Select
  13. ActiveCell.FormulaR1C1 = _
  14. "=IF(COUNTIF(R[-237]C:R[-237]C[47],""O"")>0,""O"",IF(COUNTIF(R[-237]C:R[-237]C[47],""i"")>0,""I"",IF(COUNTIF(R[-237]C:R[-237]C[47],""H"")>0,""H"",IF(myTime(R[-237]C:R[-237]C[47])="" - "","""",myTime(R[-237]C:R[-237]C[47])))))"
  15. Range("C302:E302").Select
  16.  
  17.  
  18. ActiveSheet.Range("$BA$61:$BA$330").AutoFilter Field:=1, Criteria1:="<>0", _
  19. Operator:=xlAnd
  20. ActiveWindow.SmallScroll down:=-9
  21. ActiveSheet.PageSetup.PrintArea = "$A$299:$BD$334"
  22. ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
  23. IgnorePrintAreas:=False
  24. ActiveSheet.Range("$BA$61:$BA$330").AutoFilter Field:=1
  25. ActiveSheet.PageSetup.PrintArea = ""
  26. Range("a1").Select
  27. ActiveWindow.SmallScroll down:=-15
  28.  
  29. End Sub
Add Comment
Please, Sign In to add comment