daily pastebin goal
88%
SHARE
TWEET

Untitled

a guest Jul 18th, 2018 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Sub Filtrando()
  2. Dim nrox As String
  3.  
  4. Application.ScreenUpdating = False
  5.     Range("AI1:AL219").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:= _
  6.         Range("AR1:AU2"), CopyToRange:=Range("AR3:AU280"), Unique:=True
  7.     finx = Range("AR" & Rows.Count).End(xlUp).Row
  8.     If finx > 3 Then
  9.         'se arman los nĂºmeros concatenados en AW si no tienen X
  10.         finy = Range("AW" & Rows.Count).End(xlUp).Row + 1
  11.         For Z = 4 To finx
  12.             nrox = Format(Range("AR" & Z) & Range("AS" & Z) & Range("AT" & Z) & Range("AU" & Z), "0000")
  13.             If InStr(1, UCase(nrox), "X", 0) = 0 Then
  14.                 Range("AW" & finy) = nrox: finy = finy + 1
  15.             End If
  16.         Next Z
  17.     End If
  18.  
  19. End Sub
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top