- ©«¤l
- 214
- ¥DÃD
- 74
- ºëµØ
- 0
- ¿n¤À
- 296
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- hk
- µù¥U®É¶¡
- 2013-6-17
- ³Ì«áµn¿ý
- 2018-11-3
|
¤@±isheet¥u¦w±Æ¤@Ó¤U©Ô¦¡²M³æ,¦ý¦b¥ô¦ó¦ì¸m,³£¥i¥H¥X²{§A·Qnªº²M³æ
¤U¨ÒÅý§Aselect"AÄæ",¤U©Ô¦¡²M³æ¬O"dataA"
¤U¨ÒÅý§Aselect"BÄæ",¤U©Ô¦¡²M³æ¬O"dataB"
¤U¨ÒÅý§Aselect"CÄæ",¤U©Ô¦¡²M³æ¬O"dataC"......
·íµM,§A¥ýn³]©wdataA,dataB,dataC
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
ActiveSheet.UsedRange.Validation.Delete
Application.EnableEvents = False
Select Case Target.Column
Case 1
Target.Cells(1).Validation.Add Type:=xlValidateList, Formula1:="=dataA"
Case 2
Target.Cells(1).Validation.Add Type:=xlValidateList, Formula1:="=dataB"
Case 3
Target.Cells(1).Validation.Add Type:=xlValidateList, Formula1:="=dataC"
End Select
Application.EnableEvents = True
End Sub |
|