Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. Sub Macro4()
  2. '
  3. ' Macro4 Macro
  4. '
  5.  
  6. '
  7. Dim nbIp As Integer
  8. Dim ip()
  9. nbIp = WorksheetFunction.CountIf(Cells, "Identité patient")
  10. MsgBox (nbIp)
  11. ReDim ip(nbIp)
  12.  
  13. Cells.Find(What:="Identité patient").Activate
  14. ip(1) = ActiveCell.Row
  15.  
  16. For i = 2 To nbIp
  17. Cells.FindNext(After:=ActiveCell).Activate
  18. ip(i) = ActiveCell.Row
  19. MsgBox ip(i)
  20. Next i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement