|
楼主 |
发表于 2015-8-2 00:46
|
显示全部楼层
- '------------------------- ME192.168.2.111I SET
- Workbooks(sFileName).Worksheets(sNewSheets).Cells(j, BASE1_NO) = j - BASE1_DATA_ROW + 1
- Workbooks(sFileName).Worksheets(sNewSheets).Cells(j, BASE1_ITEMCODE) = Workbooks(MeFile_Name).Worksheets(XSEIK_SHEET).Cells(i, XSEIKFile_ITEMCODE)
- '
- Call Select_XITEM_Proc(Workbooks(MeFile_Name).Worksheets(XSEIK_SHEET).Cells(i, XSEIKFile_ITEMCODE), sITEMNAME, sLOTS, sTANNI, sFUGOU, sKEISU, J0, J1, J2)
- Workbooks(sFileName).Worksheets(sNewSheets).Cells(j, BASE1_ITEMNAME) = sITEMNAME
- 'Workbooks(sFileName).Worksheets(sNewSheets).Cells(j, BASE1_LOT) = sLOTS
-
- If sFUGOU = 0 Then
- Workbooks(sFileName).Worksheets(sNewSheets).Cells(j, BASE1_LOT) = sLOTS
- ElseIf sFUGOU = 1 Then
- Workbooks(sFileName).Worksheets(sNewSheets).Cells(j, BASE1_LOT) = sLOTS * (sKEISU ^ 2)
- Else
- Workbooks(sFileName).Worksheets(sNewSheets).Cells(j, BASE1_LOT) = sLOTS / (sKEISU ^ 2)
- End If
-
-
- '
- '
- vSum = Select_XSEIK_Order_Count_Proc(i, dKakutei)
- Workbooks(sFileName).Worksheets(sNewSheets).Cells(j, BASE1_MONTHS) = vSum
- Workbooks(sFileName).Worksheets(sNewSheets).Cells(BASE1_DATA_SUMROW, BASE1_MONTHS) = Workbooks(sFileName).Worksheets(sNewSheets).Cells(BASE1_DATA_SUMROW, BASE1_MONTHS) + vSum
-
- If Select_XSEIK_Order_Count_Proc(i, DateAdd("M", 1, dKakutei)) + J1 - J0 <= 0 Then
- vSum = 0
- Else
- vSum = Select_XSEIK_Order_Count_Proc(i, DateAdd("M", 1, dKakutei)) + J1 - J0
- End If
-
- Workbooks(sFileName).Worksheets(sNewSheets).Cells(j, BASE1_MONTHS + 1) = vSum
- Workbooks(sFileName).Worksheets(sNewSheets).Cells(BASE1_DATA_SUMROW, BASE1_MONTHS + 1) = Workbooks(sFileName).Worksheets(sNewSheets).Cells(BASE1_DATA_SUMROW, BASE1_MONTHS + 1) + vSum
-
- If Select_XSEIK_Order_Count_Proc(i, DateAdd("M", 2, dKakutei)) + J2 - J1 <= 0 Then
- vSum = 0
- Else
- vSum = Select_XSEIK_Order_Count_Proc(i, DateAdd("M", 2, dKakutei)) + J2 - J1
- End If
-
- Workbooks(sFileName).Worksheets(sNewSheets).Cells(j, BASE1_MONTHS + 2) = vSum
- Workbooks(sFileName).Worksheets(sNewSheets).Cells(BASE1_DATA_SUMROW, BASE1_MONTHS + 2) = Workbooks(sFileName).Worksheets(sNewSheets).Cells(BASE1_DATA_SUMROW, BASE1_MONTHS + 2) + vSum
-
- j = j + 1
- i = i + 1
- Loop
- If i > DATA_ROW Then
- Workbooks(sFileName).Activate
- ActiveWorkbook.Save
- Workbooks(MeFile_Name).Activate
- End If
- Exit Sub
- Error_Handler:
- MsgBox "BASE1_IMPORT Error"
- End Sub
复制代码 是不是这段代码 没改?
|
|