In the code I'm looking for part numbers that have not been shipped in over 30 days. I have my if statement set up, but I need for it to look at the over 30 days and move the part number, which is in another column.
If Sheets(sh).Range(TestRange) > 30 Then
TestRange = "AF" + i
TestRange2 = "AE" + i
parts = parts + 1
'Parts number
Output(1) = "A" + i 'does not look to see if AF is greater then 30
Output(2) = Sheets(sh).Range(Output(1)).Value
'Output info to Over 30 sheet
m = parts + 2
reportlocation = "A" + m
Sheets(destsh).Range(reportlocation).Value = Output(2)
'n = n + 1
TestRange = "AF" + i
TestRange2 = "AE" + i
i = i + 1
End If
All the help in the world would be greatly appreciated.
Wendy
If Sheets(sh).Range(TestRange) > 30 Then
TestRange = "AF" + i
TestRange2 = "AE" + i
parts = parts + 1
'Parts number
Output(1) = "A" + i 'does not look to see if AF is greater then 30
Output(2) = Sheets(sh).Range(Output(1)).Value
'Output info to Over 30 sheet
m = parts + 2
reportlocation = "A" + m
Sheets(destsh).Range(reportlocation).Value = Output(2)
'n = n + 1
TestRange = "AF" + i
TestRange2 = "AE" + i
i = i + 1
End If
All the help in the world would be greatly appreciated.
Wendy