¼ÐÃD:
[µo°Ý]
¤@Ãä¿é¤J¤@Ãä§Y®É¤ñ¹ï
[¥´¦L¥»¶]
§@ªÌ:
jesscc
®É¶¡:
2011-8-19 20:11
¼ÐÃD:
¤@Ãä¿é¤J¤@Ãä§Y®É¤ñ¹ï
§Ún¦b¤u§@¶"¿é¤J"ªºE7¥H¤U¶}©l¿é¤JPN¡A¨C¤@µ§PN¿é¤J§¹«á¥ß¨è»P¤u§@¶"DATA"¤¤ªº¬J¦³¸ê®Æ°µ§Y®É¤ñ¹ï¡A¦pªG¦b¤u§@¶"DATA"¤¤§ä¤£¨ì¬Û¦PPN®É¡A´N¦b¤u§@¶"¿é¤J"ªºBÄæ¦P¤@¦CÅã¥Ü¤@Ó¬õ¦â°Ý¸¹¡C
§Úªº¼gªk¦n¹³¹F¤£¨ì®ÄªG¡A¦Ó¥B·|¥X²{°£¿ù¡A¥i¥HÀ°§Ú¬Ý¬Ýn¦p¦óקï¶Ü?
[attach]7514[/attach]
§@ªÌ:
oobird
®É¶¡:
2011-8-20 08:57
¥Î¿ù¨Æ¥ó¤F¡C
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Column <> 5 Then Exit Sub
If Target.Count > 1 Then Exit Sub
If Sheets("DATA").[b:b].Find(Target, , , 1) Is Nothing Then
Application.EnableEvents = False
Target.Offset(, -3) = "?"
Target.Offset(, -3).Font.ColorIndex = 3
Application.EnableEvents = True
End If
End Sub
½Æ»s¥N½X
§@ªÌ:
jesscc
®É¶¡:
2011-8-21 09:49
O¤j¡A¦w¦w
¥Î¿ù¨Æ¥ó¡A¬O«ü¼g¦bModule¸Ìªº»yªk¡A¤£§¹¥þ¾A¥Î¦b Private Sub Worksheet_Change ùضÜ?
§Ú§âkeyin¿ù»~ªº¸ê®Æ§R°£«á¡A¨ºÓ¬õªº°Ý¸¹¤£·|¸òµÛ¤@°_®ø¥¢¡C¦pªG§Æ±æ¥¦¤@°_¸òµÛ®ø¥¢¸Ó«ç»ò§ï?
§@ªÌ:
oobird
®É¶¡:
2011-8-21 10:17
Worksheet_SelectionChange¬O¦bÂIÀ»Àx¦s®æ´Nµo¥Íªº¨Æ¥ó
¤£¾A¦X§A¦b¼g¤JÀx¦s®æ¤~n§PÂ_°õ¦æ¥ô°È
©Ò¥Hn ¼g¦bWorksheet_Change¨Æ¥ó¤¤¡C
§ï¹L«án²M°£¼g¤Jªº°Ý¸¹¡G
Target.Offset(, -3) = "?"
Target.Offset(, -3).Font.ColorIndex = 3
ELSE
Target.Offset(, -3) = ""
Target.Offset(, -3).Font.ColorIndex = 0
Application.EnableEvents = True
End If
¥[¤W¬õ¦r³¡¥÷
§@ªÌ:
jesscc
®É¶¡:
2011-8-21 11:19
µLªk¥¿±`°õ¦æ¡A³sì¨Óªº¥\¯à³£¥¢®Ä¤F
§@ªÌ:
oobird
®É¶¡:
2011-8-21 12:52
§Ú¹B¦æ¬Ookªº¡C§An¤£n§âµLªk¹B¦æªºÀɮתþ¤W¨Ó¡H
§@ªÌ:
jesscc
®É¶¡:
2011-8-21 14:12
ªþ¤WÀÉ®×
³Â·ÐO¤j¤F¡AÁÂÁÂ!
[attach]7525[/attach]
§@ªÌ:
GBKEE
®É¶¡:
2011-8-21 14:31
¦^´_
7#
jesscc
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Row < 7 Then Exit Sub '§Ú¦h¥[³o¦æ
If Target.Column <> 5 Then Exit Sub
If Target.Count > 1 Then Exit Sub
Application.EnableEvents = False '
§ï©ñ³o¸Ì
If Sheets("DATA").[b:b].Find(Target, , , 1) Is Nothing Then
' §R±¼ Application.EnableEvents = False '°±¤îª«¥ó¯àIJµo¨Æ¥ó
Target.Offset(, -3) = "?"
Target.Offset(, -3).Font.ColorIndex = 3
Else
Target.Offset(, -3) = ""
Target.Offset(, -3).Font.ColorIndex = 0
' §R±¼ Application.EnableEvents = True '«ì´_ª«¥ó¯àIJµo¨Æ¥ó
End If
Application.EnableEvents = True '
§ï©ñ³o¸Ì
End Sub
§@ªÌ:
jesscc
®É¶¡:
2011-8-21 14:44
ÁÂÁÂG¤j
¥i¥H¥¿±`°õ¦æ¤F¡C¦n²`¶ø³á!
·Q¤£¤Ó³q...
Åwªï¥úÁ{ ³Â»¶®a±Ú°Q½×ª©ª© (http://forum.twbts.com/)