Guest User

Untitled

a guest
Mar 17th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. ActiveCell.EntireRow.Select
  2. Selection.Insert Shift:=xltoDown
  3.  
  4. Range("A9:AK9").Copy
  5. Range("A8:AK8").Select
  6. Selection.PasteSpecial Paste:=xlPasteFormulas
  7. Selection.PasteSpecial Paste:=xlPasteFormats
  8.  
  9. Range("C10").Copy
  10. Range("C8:C9").Select
  11. Selection.PasteSpecial Paste:=xlPasteFormulas
  12.  
  13. Range("H9:AK9").Copy
  14. Range("H8:AK8").Select
  15. Selection.PasteSpecial Paste:=xlPasteAll
  16.  
  17. nomCM = Empty
  18. CXinitial = Empty
  19. resteCX = Empty
  20. CCselect = Empty
  21. C4initial = Empty
  22. resteC4 = Empty
  23. compteurCT = Empty
  24.  
  25. Range("A8").Activate
  26. ActiveCell.RowHeight = 18.6
  27.  
  28. For i = 2 To ThisWorkbook.Sheets.Count
  29.  
  30. With Sheets(i).Select
  31.  
  32. emptyrow = Range("A9").End(xlDown).Offset(0, 2).Row
  33. Range("A9:AL" & emptyrow).Sort _
  34. Key1:=Range("A9"), Order1:=xlAscending
  35.  
  36. Set SearchRange = Range("A8", Range("A200").End(xlUp))
  37. Set FindRow = SearchRange.Find(nomCM, LookIn:=xlValues, LookAt:=xlWhole)
  38. Range("A" & FindRow.Row).Select
  39. ActiveCell.EntireRow.Activate
  40.  
  41. End With
  42.  
  43. Next i
  44.  
  45. Sheet2.Select
  46.  
  47. End
  48. End Sub
Add Comment
Please, Sign In to add comment