So here's the deal. I work in manufacturing, and my job involves researching why we our system inventory numbers are different than our actual physical numbers. So to start with, I make reports for every work order with part deficiences in the system. I'm attempting to make a macro that will pull a range of data from a bunch of open workbooks, compile them into one report, sort the data, and finally auto sum all the entries that are for the same parts. My "A" column is the stockcode. My "E" column is the qty requirement that we were unable to fill systematically. Row 1 is a header.
This portion of my code doesn't work and I can't for the life of me figure out why.
Any help would be wonderful. Is it not possible to seat a do loop inside a for loop?
This portion of my code doesn't work and I can't for the life of me figure out why.
Code:
For z = 2 To entrycount
If Cells(z, 1) = Cells((z + 1), 1) Then
x = 2
y = 3
Do Until Cells(x, 1) <> Cells(y, 1)
Cells(x, 5) = Cells(x, 5) + Cells(y, 5)
Cells(y, 1).EntireRow.Delete
x = x + 1
y = y + 1
Loop
End If
Next
Any help would be wonderful. Is it not possible to seat a do loop inside a for loop?