- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¥»©«³Ì«á¥Ñ c_c_lai ©ó 2013-10-21 17:37 ½s¿è
¦^´_ 1# wxad0285
¥H¤U¬O§A쥻ªº«ä¸ô (¥¼¨Ï¥Î "¤½¦¡->¦WºÙºÞ²zû " (2010) ¡F "´¡¤J->©w¸q¦WºÙ" (2003))¡G- Private Sub ComboBox1_Change()
- With UserForm1
- ' IT = "¼Ò¨ã½s¸¹" & .ComboBox1.Value
- ' .ComboBox2.RowSource = Names(IT)
- .ComboBox2.RowSource = "Sheet2!" & Sheets("Sheet2").Range(Chr(Asc(.ComboBox1.Value) + 1) & "1:" & Chr(Asc(.ComboBox1.Value) + 1) & "3").Address
- .ComboBox2.ListIndex = 0
- .CommandButton2.SetFocus
- End With
- End Sub
- Private Sub ComboBox2_Change()
- UserForm1.CommandButton2.SetFocus
- End Sub
- Private Sub CommandButton1_Click()
- r = [a65536].End(3).Row + 1
- Cells(r, 1).Value = ComboBox1.Value
- Cells(r, 2).Value = ComboBox2.Value
- End Sub
- Private Sub CommandButton2_Click()
- Unload UserForm1
- End Sub
- Private Sub UserForm_Initialize()
- With UserForm1
- ' .ComboBox1.RowSource = Names("¾÷¥x")
- .ComboBox1.RowSource = "Sheet2!" & Sheets("Sheet2").[A1:A3].Address
- .ComboBox1.ListIndex = 0
- .CommandButton2.SetFocus
- End With
- End Sub
½Æ»s¥N½X |
|