- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 250
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-18
|
¦^´_ 6# skyutm
ª«¥óÃþ§OªºÀ³¥Î¬O±N¦P¤@©Ê½èªºª«¥óÂkÃþ¡A¨Ï¨ä¯à¦@¦P°õ¦æµ{¦¡
¤u§@ªí¼Ò²Õ- Private Sub Worksheet_SelectionChange(ByVal Target As Range)
- If Target.Column = 3 And Target.Count = 1 Then UserForm1.Show 0
- End Sub
½Æ»s¥N½X UserForm1¼Ò²Õ- Private Sub UserForm_Initialize()
- With ListBox1
- .AddItem "²¤¦³¶i¨B"
- .AddItem "§V¤O¤£¨¬"
- .AddItem "¾Ç·~ºë¶i"
- .AddItem "Ä~Äò¥[±j"
- Set Obs(0).MyList = ListBox1
- End With
- With ListBox2
- .AddItem "«~¾ÇÝÀu"
- .AddItem "¤Í·R¦P¾Ç"
- .AddItem "«æ¤½¦n¸q"
- .AddItem "¥Í©ÊÃi´²"
- Set Obs(1).MyList = ListBox2
- End With
- End Sub
½Æ»s¥N½X ª«¥óÃþ§O¼Ò²Õ(´¡¤J)- Public WithEvents MyList As MSForms.ListBox
- Private Sub MyList_Click()
- ActiveCell = IIf(ActiveCell = "", MyList, ActiveCell & "¡B" & MyList)
- n = IIf(MyList.Name = "ListBox1", "ListBox2", "ListBox1")
- If UserForm1.Controls(n).ListIndex <> -1 Then UserForm1.Controls(n).Selected(UserForm1.Controls(n).ListIndex) = False
- End Sub
½Æ»s¥N½X
ª«¥óÃþ§OÀ³¥Î.rar (12.93 KB)
|
|