- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
        
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2016-10-20 05:54 ½s¿è
¦^´_ 19# v03586
¦^·Å¨Ï¥Î´ÁÂI¨â¤UÅܦ¨1899¦~...
קï³o¸Ì- Sub ©ñ¤J¦B½c() 'Input ¦B½c (¸ê®Æ¦s¤J¡yDatabase-¦B½c¡z)
- Set Sh = Sheets("Database-¦B½c")
- ¦^·Å«á¨Ï¥Î´Á = Now + 2 '**µ¹È
- Com_Title = " [ ©ñ¤J¦B½c ]"
- Form_InPut.Show
- End Sub
½Æ»s¥N½X- If T = 3 Or T >= 6 And T <> UBound(Text_Ar) Then Text_Ar(T + 1).SetFocus
- '** 1¤u¸¹ , 2¼h¬[½s¸¹ , 4LOT, 5PCS **¤£³]®æ¦¡¤£¸õ¨ì¤U¤@¿é ¤J±±¨î¶µ
- '**3Film P/N , 6¦^·Å«á¨Ï¥Î´Á, 7½¦¯È»s³y¤é 8 ½¦¯È¨ì´Á¤é **'¸õ¨ì¤U¤@¿é ¤J±±¨î¶µ
- '** 9 ©ñ¤J®É¶¡=>Text_Ar(T + 1).SetFocus ·|¦³¿ù»~ªº
½Æ»s¥N½X ¤u¸¹ ¸ò ¼h¬[½s¸¹.... ¸Ñ°£¨î- Private Sub TextBox1_Change() '** ±±¨î¶µ¦³ÅÜ°Ê : µ{¦¡§@¥Î ¸ê®Æ®æ¦¡ ªºÀˬd
- '**¤£¨î®æ¦¡
- TheMsg 1, Trim(TextBox1) <> "" '¤£¨î®æ¦¡
- End Sub
½Æ»s¥N½X ³]©w±ø½X®æ¦¡- Private Sub TextBox7_Change()
- '®æ¦¡ ±ø½X 8 ¦ì¼Æ
- Dim St(1 To 2) As String, Msg As Boolean, Ar
- St(1) = Trim(TextBox7)
- Msg = Len(St(1)) = 8 And IsNumeric(St(1)): If Not Msg Then GoTo Ne
- St(2) = Mid(St(1), 1, 4) & "/" & Mid(St(1), 5, 2) & "/" & Mid(St(1), 7, 2)
- Msg = IsDate(St(2)): If Not Msg Then GoTo Ne '**¤é´Á¥¿½T
- Msg = DateValue(St(2)) < Date: If Not Msg Then GoTo Ne '**½¦¯È»s³y¤é¥²¤p©ó·í¤é
- Ne:
- TheMsg IIf(Label6.Enabled, 7, 6), Msg
- End Sub
- Private Sub TextBox8_Change()
- '®æ¦¡ ±ø½X 8 ¦ì¼Æ
- Dim St(1 To 3) As String, Msg As Boolean, Ar
- St(1) = Trim(TextBox8)
- Msg = Len(St(1)) = 8 And IsNumeric(St(1)): If Not Msg Then GoTo Ne
- St(2) = Mid(St(1), 1, 4) & "/" & Mid(St(1), 5, 2) & "/" & Mid(St(1), 7, 2) '½¦¯È¨ì´Á¤é
- Msg = IsDate(St(2)): If Not Msg Then GoTo Ne
- Msg = Text_Msg(IIf(Label6.Enabled, 7, 6)): If Not Msg Then GoTo Ne '½¦¯È»s³y¤é¬O§_¥¿½T
- St(3) = Trim(TextBox7)
- St(3) = Mid(St(3), 1, 4) & "/" & Mid(St(3), 5, 2) & "/" & Mid(St(3), 7, 2) '**'½¦¯È»s³y¤é
- Msg = DateValue(St(2)) > DateValue(St(3)) '**½¦¯È¨ì´Á¤é¥²¤j©ó½¦¯È»s³y¤é
- Ne:
- TheMsg IIf(Label6.Enabled, 8, 7), Msg
- End Sub
- '**³]©w±ø½X®æ¦¡ «á»Ýקï
- Private Sub ComButton_Click() '**±±¨î¶µªº¨Æ¥ó («ö¤U±±¨î¶µ)
- Dim i As Integer, XR As Integer
- If MsgBox(Join(Text_Ar, vbLf), vbYesNo, " ** ½T©w " & Com_Title & " **") = vbYes Then
- '**Join ¨ç¼Æ ¶Ç¦^¤@Ó¦r¦ê , ¸Ó¦r¦ê¬O³z¹L³sµ²¬YÓ°}¦C¤¤ªº¦hÓ¤l¦r¦ê¦Ó«Ø¥ßªº
- XR = Application.CountA(Sh.[A:A])
- With Sh.Range("A" & XR).Offset(1)
- For i = 1 To UBound(Text_Ar) '**UBound ¨ç¼Æ ¶Ç¦^ LongÈ¡Aªí¥Ü«ü©w°}¦C¬Yºû³Ì¤j¥i¨Ï¥Îªº°}¦C¯Á¤Þ¡C
- If InStr(Sh.Name, "¦B½c") And (i = 6 Or i = 7) Then
- .Cells(1, i) = Mid(Text_Ar(i), 1, 4) & "/" & Mid(Text_Ar(i), 5, 2) & "/" & Mid(Text_Ar(i), 7, 2)
- ElseIf InStr(Sh.Name, "¦B½c") = 0 And (i = 7 Or i = 8) Then
- .Cells(1, i) = Mid(Text_Ar(i), 1, 4) & "/" & Mid(Text_Ar(i), 5, 2) & "/" & Mid(Text_Ar(i), 7, 2)
- Else
- .Cells(1, i) = UCase(Text_Ar(i).Text) '**UCase ¨ç¼Æ ¶Ç¦^¤@Ó Variant (String)¡A©Ò§t¬°Âন¤j¼g¤§¦r¦ê¡C
- End If
- Next
- End With
- DataBase_Show
- End If
- ListBox1_Change
- End Sub
½Æ»s¥N½X |
|