I have a cell "B259" that I want the value of each cell in column A going from cell A3:A253 to replace what is is in B259 upon each loop. This is my current code.
Basically I need another for loop within the current for loop that goes through each cell in A.. Changes value in B259 to reflect which value it's on, all the way to 253. I'd appreciate any assistance. BTW Sheet3 is what everything is on.
VBA Code:
Sub Generate()
For x = 1 To 350
Worksheets("Sheet3").Range("B254:L259").Calculate
If Range("K256").Value < 35000 And Range("M256").Value = 9 Then
Worksheets("Sheet3").Range("B256:M256").Copy
Worksheets("Sheet4").Cells(Rows.Count, "A").End(xlUp).Offset(1).PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
End If
Next x
End Sub
Basically I need another for loop within the current for loop that goes through each cell in A.. Changes value in B259 to reflect which value it's on, all the way to 253. I'd appreciate any assistance. BTW Sheet3 is what everything is on.