Hello,
Latest quandary. I need to set 3 conditions for a row of information to be chosen to have 8 columns copied and placed in another worksheet.
This should pull only those records that match these three conditions from a worksheet with ~30,000 rows.
Can anyone help me figure out how to set up 3 constraints before copying appropriate cells?
I haven't placed the cell result pull yet.
DThib
Latest quandary. I need to set 3 conditions for a row of information to be chosen to have 8 columns copied and placed in another worksheet.
This should pull only those records that match these three conditions from a worksheet with ~30,000 rows.
Can anyone help me figure out how to set up 3 constraints before copying appropriate cells?
I haven't placed the cell result pull yet.
Code:
Private Sub WorkaSet()
Dim Rws As Long
Dim Rng As Range
Dim ws, sh As Worksheet
Dim c, a, b As Range
Dim x As Integer
Set ws = Sheets("Workable") 'specify sheet name here to paste to
x = 3 'begins pasting in Sheet RFQ on row 2
Application.ScreenUpdating = False
Set sh = Sheets("Initial Query Pull")
Set a = sh.Range("$K:$K")
Set b = sh.Range("$Y:$Y")
With sh
For Each c In .Range("$AF:$AF")
If (c.Value <> "") And (a.Value = "Assigned") And (b.Value = "") Then
'If b.Value = "" Then
'searches for "FI ready" cells And (C1.Value = "Assigned")
c.EntireRow.Copy
ws.Range("B" & x).PasteSpecial Paste:=xlValues
x = x + 1
End If
Next c
End With
ws.Range("A1").Select
Application.ScreenUpdating = True
End Sub
DThib
Last edited: