Guest User

Untitled

a guest
Nov 13th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. Sub formatting()
  2. For rcell = 1 To lrow
  3. CharacterIndex = InStr(1, sourceSheet.Cells(rcell, Col_Western), "Delivery for Creative", vbBinaryCompare)
  4. If CharacterIndex > 0 Then
  5. On Error Resume Next
  6. deliveryname = "CS"
  7.  
  8. With ThisWorkbook.Worksheets.add
  9. .Name = deliveryname
  10. sourceSheet.Range(sourceSheet.Cells(rcell, Col_Western), sourceSheet.Cells(lastrow, Col_phone).End(xlDown)).Copy .Range("A1")
  11. Cells.Select
  12. Selection.RowHeight = 50
  13. Selection.ColumnWidth = 30
  14. 'Add Autofilter to Row above student details
  15. Range("a8:e8").EntireRow.AutoFilter
  16. End With
  17. End If
  18.  
  19. Next rcell
  20.  
  21.  
  22.  
  23. For Each Grey_ws In ThisWorkbook.Worksheets
  24. With Grey_ws
  25. Call Grey_VALUE_AND_RANGE_ALL(Grey_ws)
  26. 'do nothing else
  27. End With
  28. Next Grey_ws
  29.  
  30. For Each Grey_ws In ThisWorkbook.Worksheets
  31. With Grey_ws
  32. 'Add Complimentary Column
  33. Call Add_Complimentary(Grey_ws)
  34. End With
  35. Next Grey_ws
  36. end sub
Add Comment
Please, Sign In to add comment