ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] input box¿é¤J ¤ñ¹ï¸ê®Æ

[µo°Ý] input box¿é¤J ¤ñ¹ï¸ê®Æ

¤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ªG­n±N·j´M¨ìªº¸ê®Æ¤Ï©³¦âµ{¦¡½X·|«Ü½ÆÂø¶Ü?  <ÃB¥~¥\¯à ¥i¦³¥iµL>
  1. Sub Outwafer()
  2. EnterMOo:
  3.     P = InputBox("½Ð¿é¤JMO [Please enter MO]", "½Ð¿é¤JMO [Please enter MO]", "")
  4.      If Len(P) < 7 Then
  5.       If MsgBox("§Aªº¿é¤J¦³»~¡A¬O§_­«·s¿é¤J¤@­ÓMO?" & vbCrLf & _
  6.                 "ÂIÀ»""¬O""­«·s¿é¤J¡A""§_""°h¥X·í¦¸¿é¤J¡C" & vbCrLf & _
  7.                 "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
  8.       Exit Sub
  9.     End If
  10.    
  11. EnterOID:
  12.     G = InputBox("½Ð¿é¤J¤u¸¹ [Please enter OP ID]", "½Ð¿é¤J¤u¸¹ [Please enter OP ID]", "")
  13.     If Len(G) < 1 Then
  14.       If MsgBox("§Aªº¿é¤J¦³»~¡A¬O§_­«·s¿é¤J¤u¸¹?" & vbCrLf & _
  15.                 "ÂIÀ»""¬O""­«·s¿é¤J¡A""§_""°h¥X·í¦¸¿é¤J¡C" & vbCrLf & _
  16.                 "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
  17.       Exit Sub
  18.     End If

  19.     Dim C2 As Integer
  20.     C2 = 2
  21.     While Cells(C2, 2) <> ""
  22.     C2 = C2 + 1
  23.     Wend
  24.     Cells(C2, 6) = Now()
  25.     Cells(C2, 7) = G

  26. End Sub
½Æ»s¥N½X
¥t¦A°Ý¤@¤U ¦pªG§R°£¥\¯à¡A­n§ï¦¨¤ñ¹ïFÄæ¦ì ¶W¹L3­Ó¤ë
µ{¦¡½X¸Ó¦p¦ó­×§ï©O?
  1. Sub §R°£()
  2. Dim R&
  3. R = Application.CountIf([Database!C:C], "<" & Date - 90)
  4. If R > 0 Then [Database!A2:C2].Resize(R).Delete Shift:=xlUp

  5. R = Application.CountIf([Database!F:F], "<" & Date - 90)
  6. If R > 0 Then [Database!D2:F2].Resize(R).Delete Shift:=xlUp
  7. End Sub
½Æ»s¥N½X

¦^´_ 4# lpk187


    ·PÁ¤j¤jªº´£¨Ñ¡I§Ú¦bµy·L°µ­Ó­×§ï¡I:)

TOP

¦^´_ 1# v03586

¬d¸ß¤ñ¹ïªº¤è¦¡¦³«Ü¦hºØ¡A°Q½×°Ï¤¤¦³¤Ó¦h¨Ò¤l¤F¡A¤U¦C´£¨Ñ2ºØµ¹§A°Ñ¦Ò¡G
  1.     With Sheets("¤u§@ªí1")
  2.         For Each Rng In .Range("b2:B" & Cells(Rows.Count, 2).End(xlUp).Row)
  3.             If Rng <> "" Then
  4.                 If Rng Like P Then
  5.                     Rng.Offset(, 4) = Rng.Offset(, -1)
  6.                     Rng.Offset(, 5) = G
  7.                 End If
  8.             End If
  9.         Next
  10.     End With
½Æ»s¥N½X
  1.     Dim Rng As Range
  2.     With Sheets("¤u§@ªí1")
  3.         With .Columns(2)
  4.             Set Rng = .Find(P, , , 1, , 2)
  5.                 If Not Rng Is Nothing Then
  6.                     Rng.Offset(, 4) = Rng.Offset(, -1)
  7.                     Rng.Offset(, 5) = G
  8.                 Else
  9.                     MsgBox "¬dµL¸ê®Æ"
  10.                 End If
  11.         End With
  12.     End With
½Æ»s¥N½X

TOP

TOP

¨Ò¦p§Ú¿é¤J28445621 ¸ê®ÆªíBÄ榳³oµ§¸ê®Æ ´N¦bFÄæ¦ì¤W±a¤J®É¶¡ªí¥ÜOuput¤F §@·~­ûID
¦p¤U¹Ï

TOP

        ÀR«ä¦Û¦b : ­ì½Ì§O¤H´N¬Oµ½«Ý¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD