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

¤U©Ô¦¡­n¦p¦ó¿ï¾Ü«á·|¦Û°Ê±a¥X¨ä¥Lªí³æ°T®§

¦^´_ 4# GBKEE


    ·PÁ¤j¤jÀ°¦£(0¤f0)~¯u¬O¤Ó±j¤F
¤£¹L¦pªG§Ú¬O­nÂI¿ï¤@¸¹À\¡AÀ\ÂI©M»ù¿ú³£·|¦Û°Ê¶]¥X¨Ó
³o¬O­n­×§ï­þ­Ó³¡¥÷©O(@@)?
Jared

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2013-3-7 14:56 ½s¿è

¦^´_ 3# Jared
¸Õ¸Õ¬Ý³o¬O§_¦p§A©Ò»Ý
  1. 'ListIndex = -1: ©Ò¿ïªº¤£¦b List²M³æ¤º
  2. Private Sub ComboBox1_Change()
  3.     If ComboBox1.ListIndex > -1 Then
  4.         À\ÂI
  5.     Else
  6.         ComboBox2 = ""
  7.     End If
  8. End Sub
  9. Private Sub ComboBox2_Change()
  10.     TextBox1 = ""
  11.     If ComboBox2.ListIndex > -1 Then TextBox1 = ComboBox2.List(ComboBox2.ListIndex, 1)
  12. End Sub
  13. Private Sub CommandButton1_Click()
  14.     Dim A
  15.     If ComboBox1.ListIndex = -1 Or ComboBox2.ListIndex = -1 Then MsgBox "À\ÂI¤º®e »Ý»ô¥þ !!": Exit Sub
  16.     With Sheet10
  17.         .Cells(.Rows.Count, 1).End(xlUp).Offset(1).Resize(, 3).Value = Array(ComboBox1, ComboBox2, TextBox1)
  18.     End With
  19. End Sub
  20. Private Sub CommandButton2_Click()
  21.     test4.Hide
  22. End Sub
  23. Private Sub CommandButton3_Click()
  24.     Me.ComboBox1 = ""
  25.     Me.ComboBox2 = ""
  26.     Me.TextBox1 = ""
  27. End Sub
  28. Private Sub UserForm_Initialize()
  29.     ComboBox1.List = Array("¤@¸¹À\", "¤G¸¹À\", "¤T¸¹À\")
  30. End Sub
  31. Private Sub À\ÂI()
  32.     With ComboBox2
  33.         .Clear
  34.         Select Case ComboBox1.ListIndex
  35.             Case 0               '¤@¸¹À\
  36.                 .AddItem "º~³ù¡BÁ¦±ø¡B¥i¼Ö"
  37.                 .List(.ListCount - 1, 1) = 50           'ComboBox2ªº²Ä2Äæ  ¨SÅã¥Ü¥X¨Ó
  38.                 .AddItem "º~³ù¡BÁ¦»æ¡B¥i¼Ö"
  39.                 .List(.ListCount - 1, 1) = 49
  40.                 .AddItem "º~³ù¡BÁ¦»æ¡B¬õ¯ù"
  41.                 .List(.ListCount - 1, 1) = 48
  42.             Case 1             '¤G¸¹À\
  43.                 .AddItem "Âû¶ô¡BÁ¦±ø¡B¥i¼Ö"
  44.                 .List(.ListCount - 1, 1) = 47           'ComboBox2ªº²Ä2Äæ  ¨SÅã¥Ü¥X¨Ó
  45.                 .AddItem "Âû¶ô¡BÁ¦»æ¡B¥i¼Ö"
  46.                 .List(.ListCount - 1, 1) = 46
  47.                 .AddItem "Âû¶ô¡BÁ¦»æ¡B¬õ¯ù"
  48.                 .List(.ListCount - 1, 1) = 45
  49.             Case 2             '¤T¸¹À\
  50.                 .AddItem "«p¤g¥q¡BÁ¦±ø¡B¥i¼Ö"
  51.                 .List(.ListCount - 1, 1) = 44           'ComboBox2ªº²Ä2Äæ  ¨SÅã¥Ü¥X¨Ó
  52.                 .AddItem "«p¤g¥q¡BÁ¦»æ¡B¥i¼Ö"
  53.                 .List(.ListCount - 1, 1) = 43
  54.                 .AddItem "«p¤g¥q¡BÁ¦»æ¡B¬õ¯ù"
  55.                 .List(.ListCount - 1, 1) = 42
  56.         End Select
  57.     End With
  58.     TextBox1 = ""
  59. End Sub
½Æ»s¥N½X

TOP

¦^´_ 2# GBKEE


©êºp¡I¥ý¤W¶Ç¥Ø«e§ÚªºÀɮצbªþÀÉ
¥u¯à¤@­Ó­ÓÂI¿ï¤U©Ô¦¡²M³æ
§Æ±æ¯à°÷ÂI¿ï¤@¸¹À\«á
ÀH§Y´N¯à§âÀ\ÂI¤º®e©M»ù®æ±a¥X¨Ó
°O¿ý¦bSheetsÄæ¦ì¸ÌÀY
¦pªG¤T­ÓÄæ¦ì¦³¤@­Ó¨S¶ñ¤W
´N·|¥X²{ĵ§iµøµ¡!

¿Ã¹õºI¹Ï00065.jpg
    ´ú¸ÕÀÉ3.zip (27.49 KB)

µ{¦¡¦p¤U
==================================================
Private Sub CommandButton1_Click()
Dim A As Range

If Application.CountBlank(Sheet10.Range("A2:A99")) = 0 Then 'ÂI¿ïÀ\¸¹
Sheet10.[A100] = ComboBox1.Value

Else

Set A = [a1]
Do Until A = ""
    Set A = A.Offset(1, 0)
Loop

A.Value = ComboBox1.Value

End If

If ComboBox1.Value = "" Then
MsgBox "±z¥ý¿ï¾Ü´X¸¹À\¡I"
Exit Sub
End If


If Application.CountBlank(Sheet10.Range("B2:B99")) = 0 Then 'À\ÂI¤º®e
Sheet10.[B100] = ComboBox2.Value

Else

Set A = [b2]
Do Until A = ""
    Set A = A.Offset(1, 0)
Loop

A.Value = ComboBox2.Value

End If


gg = test4.TextBox1.Value '»ù¿ú

If Application.CountBlank([C2:C99]) = 0 Then Range("C100") = gg: Exit Sub
For Each A In [C2:C99]
    If A = "" Then
        A.Value = gg
        Exit For
    End If
Next

End Sub
Private Sub CommandButton2_Click()
    test4.Hide
End Sub

Private Sub CommandButton3_Click()
Me.ComboBox1 = ""
Me.ComboBox2 = ""
Me.TextBox1 = ""
End Sub
Private Sub UserForm_Initialize()
ComboBox1.AddItem "¤@¸¹À\"
ComboBox1.AddItem "¤G¸¹À\"
ComboBox1.AddItem "¤T¸¹À\"

ComboBox2.AddItem "º~³ù¡BÁ¦±ø¡B¥i¼Ö"
ComboBox2.AddItem "Âû¶ô¡BÁ¦»æ¡B¬õ¯ù"
ComboBox2.AddItem "Á¦»æ¡BÁ¦±ø¡B¦B²N²O"

End Sub
Jared

TOP

¦^´_ 1# Jared
ªþÀÉ»¡©ú§Aªº°ÝÃD.­n¸ÑµªªÌ,¦n¸Ñµª¨Ç!!

TOP

        ÀR«ä¦Û¦b : ¦³Ä@©ñ¦b¤ß¸Ì¡A¨S¦³¨­Åé¤O¦æ¡A¥¿¦p¯Ñ¥Ð¤£¼½ºØ¡A¬Ò¬OªÅ¹L¦]½t¡C
ªð¦^¦Cªí ¤W¤@¥DÃD