|
- Sub aaa()
- Sheets("GM计划").Range("a3:k" & Rows.Count).ClearContents
- 行数 = Sheets("GM辊需求").Cells(Rows.Count, 2).End(3).Row
- k = 3
- For i = 6 To 行数
- If Sheets("GM辊需求").Range("ae" & i).Value = "" Then
- Sheets("GM计划").Cells(k, 1) = Sheets("GM辊需求").Range("g" & i).Value
- Sheets("GM计划").Cells(k, 2) = Sheets("GM辊需求").Range("c" & i).Value
- Sheets("GM计划").Cells(k, 3) = Sheets("GM辊需求").Range("i" & i).Value
- Sheets("GM计划").Cells(k, 4) = Sheets("GM辊需求").Range("e" & i).Value
- Sheets("GM计划").Cells(k, 5) = Sheets("GM辊需求").Range("n" & i).Value
- Sheets("GM计划").Cells(k, 6) = Sheets("GM辊需求").Range("o" & i).Value
- Sheets("GM计划").Cells(k, 7) = Sheets("GM辊需求").Range("p" & i).Value
- Sheets("GM计划").Cells(k, 8) = Sheets("GM辊需求").Range("s" & i).Value
- Sheets("GM计划").Cells(k, 9) = Sheets("GM辊需求").Range("w" & i).Value
- Sheets("GM计划").Cells(k, 10) = Sheets("GM辊需求").Range("z" & i).Value
- Sheets("GM计划").Cells(k, 11) = Sheets("GM辊需求").Range("af" & i).Value
- k = k + 1
- End If
- Next
- End Sub
复制代码 |
|