Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. data.Select
  2. plage = Cells(4, 10).Address(0, 0) & ":" & Cells(Cells(65536, 1).End(xlUp).Row, 10).Address(0, 0)
  3. For Each Rng In Range(plage)
  4. If Rng.EntireRow.Hidden = False Then
  5. If Rng.Value = "OK" Then
  6. Set sélectionl = Range(Cells(Rng.Row, 1).Address(0, 0), Cells(Rng.Row, 11).Address(0, 0))
  7. z = IIf(Worksheets("Archive").Cells(65536, 1).End(xlUp).Row + 1 > 4, Worksheets("Archive").Cells(65536, 1).End(xlUp).Row + 1, 4)
  8. sélectionl.Copy Destination:=Worksheets("Archive").Cells(z, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement