¤p§Ì¤S¦³¤@Ó¤p°ÝÃD
³o¬O¤@ÓOutput«ö¶s¡A·|¥h¤ñ¹ïInput date
ÂI¿ï«ö¶s«á¿é¤JMO¥h¤ñ¹ï¸ê®ÆªíBÄæ¦ìªºMO
¦pªG¦³¤@¼ËªºMO´N¦b¦PÄ檺Output¸ê®ÆÄæ(FÄæ)¤W¦Û°Ê±a¤J®É¶¡
§Ú¦³¼g¤@¬qµ{¦¡½X ¦ý¤£ª¾¹D¦p¦ó¼g·j´M¥\¯à...·Ð½Ð¤j¤j¨ó§U
¦pªGn±N·j´M¨ìªº¸ê®Æ¤Ï©³¦âµ{¦¡½X·|«Ü½ÆÂø¶Ü? <ÃB¥~¥\¯à ¥i¦³¥iµL>- Sub Outwafer()
- EnterMOo:
- P = InputBox("½Ð¿é¤JMO [Please enter MO]", "½Ð¿é¤JMO [Please enter MO]", "")
- If Len(P) < 7 Then
- If MsgBox("§Aªº¿é¤J¦³»~¡A¬O§_«·s¿é¤J¤@ÓMO?" & vbCrLf & _
- "ÂIÀ»""¬O""«·s¿é¤J¡A""§_""°h¥X·í¦¸¿é¤J¡C" & vbCrLf & _
- "You are not enter MO ,Click ""¬O(Y)""Re-enter or ""§_(N)""End enter", vbYesNo Or vbQuestion, "µL¿é¤JMO [You are not enter MO]") = vbYes Then GoTo EnterMOo
- Exit Sub
- End If
-
- EnterOID:
- G = InputBox("½Ð¿é¤J¤u¸¹ [Please enter OP ID]", "½Ð¿é¤J¤u¸¹ [Please enter OP ID]", "")
- If Len(G) < 1 Then
- If MsgBox("§Aªº¿é¤J¦³»~¡A¬O§_«·s¿é¤J¤u¸¹?" & vbCrLf & _
- "ÂIÀ»""¬O""«·s¿é¤J¡A""§_""°h¥X·í¦¸¿é¤J¡C" & vbCrLf & _
- "You are not enter OP ID ,Click ""¬O(Y)""Re-enter or ""§_(N)""End enter", vbYesNo Or vbQuestion, "µL¿é¤J¤u¸¹ [You are not enter OP ID]") = vbYes Then GoTo EnterOID
- Exit Sub
- End If
- Dim C2 As Integer
- C2 = 2
- While Cells(C2, 2) <> ""
- C2 = C2 + 1
- Wend
- Cells(C2, 6) = Now()
- Cells(C2, 7) = G
- End Sub
½Æ»s¥N½X ¥t¦A°Ý¤@¤U ¦pªG§R°£¥\¯à¡An§ï¦¨¤ñ¹ïFÄæ¦ì ¶W¹L3Ó¤ë
µ{¦¡½X¸Ó¦p¦óקï©O?- Sub §R°£()
- Dim R&
- R = Application.CountIf([Database!C:C], "<" & Date - 90)
- If R > 0 Then [Database!A2:C2].Resize(R).Delete Shift:=xlUp
-
- R = Application.CountIf([Database!F:F], "<" & Date - 90)
- If R > 0 Then [Database!D2:F2].Resize(R).Delete Shift:=xlUp
- End Sub
½Æ»s¥N½X |