- ©«¤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 ©ó 2012-1-1 09:39 ½s¿è
¦^´_ 10# fyo00241
²¤Æ UserForm1- Private Sub ComboBox2_Change()
- If ComboBox2 <> "" Then Sheets(ComboBox2.Text).Select '±N¤u§@ªí²¾¨ì ComboBox2
- End Sub
- Private Sub cmdOK_Click()
- Dim Msg As String, t, s, §Ç¸¹, «~¦W
- '§Ç¸¹ ,«~¦W ¤]¥ikey¦n¸m©ó¤u§@ªí ¥Î©ó·j´M¹ï·Ó
- §Ç¸¹ = Array(201106, 201101, 201111, 201102, 201103, 201127, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114, 1115, 1116, 1117, 1118, 1119, 1120)
-
- «~¦W = Array("¤â¥´ÄÁ¢¹", "¤â¥´ÄÁ", "¤â¥´ÄÁ¢º", "¤â¥´ÄÁ", "¤â¥´ÄÁ", _
- "T27¦Lªí¾÷", "¤¤¤åÂFÄÁ", "^¤åÂFÄÁ", "¤¤¤å»yµÂFÄÁ", "^¤å»yµÂFÄÁ", "¤¤¤å»yµÂFÄÁ(G)", _
- "^¤å»yµÂFÄÁ(G)", "¥W¼Ñ", "CI", "³æ®æ15PIN", "³æ®æ9PIN", "¥|¦X¤@15PIN-E", "¥|¦X¤@15PIN-EL", _
- "¥|¦X¤@9PIN", "GPS(¤è§Î)", "525¹q¦K", "747¹q¦K", "T+1·PÀ³ªO", "¶Ç°T¾÷5V", "¶Ç°T¾÷«D5V", "UIDŪ½X¾÷")
- '*** ¨¾§b
- If ComboBox2 = "" Then Msg = "¦a°Ï³æ¦ì ¥¼¿ï¾Ü !!!"
- If in1 = False And out1 = False Then Msg = IIf(Msg = "", "¥X³f±¡ªp ¥¼¿ï¾Ü !!!", Msg & Chr(10) & "¥X³f±¡ªp ¥¼¿ï¾Ü !!!")
-
- t = Application.Match(Val(Mid(TextBox1, 1, 6)), §Ç¸¹, 0) '¥ý§ä6¦ì
- If IsError(t) Then t = Application.Match(Val(Mid(TextBox1, 1, 4)), §Ç¸¹, 0) '«á§ä4¦ì
- If Not IsError(t) Then s = «~¦W(t - 1)
- If IsError(t) Then Msg = IIf(Msg = "", "§Ç¸¹¿ù»~: §ä¤£¨ì «~¦W ???", Msg & Chr(10) & "§Ç¸¹¿ù»~: §ä¤£¨ì «~¦W ???")
- If Msg <> "" Then
- MsgBox Msg
- Exit Sub
- End If
- '*** ¨¾§bµ²§ô
- With Cells(Rows.Count, "A").End(xlUp).Offset(1) '¤u§@ªí(ComboBox2)
- .Offset(0, 0) = abcName.Value
- .Offset(0, 1) = ComboBox2.Value
- .Offset(0, 2).Value = IIf(in1 = True, "¦¬¦^", "µo¥X")
- .Offset(0, 3) = TextBox1.Value
- .Offset(0, 4) = s
- End With
- End Sub
½Æ»s¥N½X ¦U³æ¦ì¤u§@ªíªºWorksheet_Change ¥i§R°£¸m©óThisWorkbook ¤¤- Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
- Dim rng As Range, i As Long, r
- If Sh.Index > 3 Then ' Index ¦U³æ¦ì¤u§@ªí©ó¬¡¶Ã¯ªº±Æ§Ç¦ì¸m
- r = isTrue(Target.Value, getRangeString)
- If r(0) Then MsgBox "" & r(1) & "ªí¤¤¤w¸g¦³¤F¡I"
- With Target
- If .Column = 1 Or .Column = 3 Or .Column = 4 Then
- If Cells(.Row, 1) <> "" And Cells(.Row, 3) <> "" And Cells(.Row, 4) <> "" Then
- For i = 2 To Cells(Rows.Count, .Column).End(xlUp).Row
- If Cells(i, 1) = Cells(.Row, 1) And Cells(i, 3) = Cells(.Row, 3) And Cells(i, 4) = Cells(.Row, 4) And i <> .Row Then
- If rng Is Nothing Then
- Set rng = Union(Cells(i, 1), Cells(i, 3), Cells(i, 4))
- Else
- Set rng = Union(rng, Cells(i, 1), Cells(i, 3), Cells(i, 4))
- End If
- End If
- Next
- If Not rng Is Nothing Then
- Set rng = Union(rng, Cells(i, 1), Cells(.Row, 3), Cells(.Row, 4))
- rng.Select
- MsgBox Cells(.Row, 1) & " " & Cells(.Row, 3) & " " & Cells(.Row, 4) & " ¦³«½ÆÀˬd¤@¤U!!"
- End If
- End If
- End If
- End With
- End If
- End Sub
½Æ»s¥N½X |
|