Guest User

Untitled

a guest
Jul 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. Sub test()
  2. Dim record As Integer, r As Long, c As Integer
  3. record = 1
  4. For r = 2 To Evaluate("CountA(G:G)")
  5. If Cells(r, 4) <> "" Then
  6. record = r
  7. c = 10
  8. Else
  9. c = c + 1
  10. End If
  11. Cells(record, c).Value = Cells(r, 7).Value
  12. Next r
  13. End Sub
Add Comment
Please, Sign In to add comment