Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. Sub RRC()
  2.  
  3.  
  4. Dim A As Variant
  5. Dim x As Long, y As Long, z As Long
  6. Count = 1
  7.  
  8.  
  9. For y = 1 To 18
  10.  
  11. For x = 1 To 2
  12.  
  13. Select Case x
  14.  
  15. Case Is = 1
  16. Sheet1.Cells(Count, 4).Value = Sheet1.Cells(y, x).Value
  17. A = Sheet1.Cells(y, 2).Value
  18. Count = Count + 1
  19. Case Is = 2
  20. Select Case A
  21. Case Is = 16
  22. Case Is = 32
  23. Count = Count + 1
  24. Sheet1.Cells(Count, 4).Value = " "
  25. Case Is = 64
  26. Count = Count + 1
  27. Sheet1.Cells(Count, 4).Value = " "
  28. Count = Count + 1
  29. Sheet1.Cells(Count, 4).Value = " "
  30. End Select
  31.  
  32. End Select
  33.  
  34.  
  35. Next x
  36. Next y
  37. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement