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

[µo°Ý] ¤@Ãä¿é¤J¤@Ãä§Y®É¤ñ¹ï

[µo°Ý] ¤@Ãä¿é¤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¦ó­×§ï¶Ü?
test.rar (9.1 KB)
Jess

¥Î¿ù¨Æ¥ó¤F¡C
  1. Private Sub Worksheet_Change(ByVal Target As Excel.Range)
  2.     If Target.Column <> 5 Then Exit Sub
  3.     If Target.Count > 1 Then Exit Sub
  4.     If Sheets("DATA").[b:b].Find(Target, , , 1) Is Nothing Then
  5.         Application.EnableEvents = False
  6.         Target.Offset(, -3) = "?"
  7.         Target.Offset(, -3).Font.ColorIndex = 3
  8.         Application.EnableEvents = True
  9.     End If
  10. End Sub
½Æ»s¥N½X

TOP

O¤j¡A¦w¦w
¥Î¿ù¨Æ¥ó¡A¬O«ü¼g¦bModule¸Ìªº»yªk¡A¤£§¹¥þ¾A¥Î¦b Private Sub Worksheet_Change ùضÜ?
§Ú§âkeyin¿ù»~ªº¸ê®Æ§R°£«á¡A¨º­Ó¬õªº°Ý¸¹¤£·|¸òµÛ¤@°_®ø¥¢¡C¦pªG§Æ±æ¥¦¤@°_¸òµÛ®ø¥¢¸Ó«ç»ò§ï?
Jess

TOP

Worksheet_SelectionChange¬O¦bÂIÀ»Àx¦s®æ´Nµo¥Íªº¨Æ¥ó
¤£¾A¦X§A¦b¼g¤JÀx¦s®æ¤~­n§PÂ_°õ¦æ¥ô°È
©Ò¥H­n ¼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³¡¥÷

TOP

µLªk¥¿±`°õ¦æ¡A³s­ì¨Óªº¥\¯à³£¥¢®Ä¤F
Jess

TOP

§Ú¹B¦æ¬Ookªº¡C§A­n¤£­n§âµLªk¹B¦æªºÀɮתþ¤W¨Ó¡H

TOP

ªþ¤WÀÉ®×
³Â·ÐO¤j¤F¡AÁÂÁÂ!
test.rar (60.17 KB)
Jess

TOP

¦^´_ 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

TOP

ÁÂÁÂG¤j
¥i¥H¥¿±`°õ¦æ¤F¡C¦n²`¶ø³á!
·Q¤£¤Ó³q...
Jess

TOP

        ÀR«ä¦Û¦b : ºw¤ô¦¨ªe¡C²É¦Ì¦¨ÅÚ¡A¤Å»´¤vÆF¡A¤Å¥Hµ½¤p¦Ó¤£¬°¡C
ªð¦^¦Cªí ¤W¤@¥DÃD