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

[µo°Ý] ¿é¤J¼Æ­È«á¡A¦p¦ó±Ò°Ê¦Û°Ê¤U©Ô¤@®æªº¾÷¨î?

¦^´_ 1# finally0130


   ¥i¥H¥ÎWorksheet_Change¨Æ¥ó¡A¦p¤U¨Ò¡G
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 4 And Target.Row > 3 And Target <> "" Then '¦bDÄæ²Ä4¦C°_¡AÀx¦s®æ¤º®e¦³§ï¬°,¸ÓÀx¦s®æ¤£¬°ªÅ¥Õ®É±Ò°Ê
    <<<¤½¦¡©Î­n°õ¦æªºµ{¦¡>>>
End If
End Sub

TOP

¥»©«³Ì«á¥Ñ lpk187 ©ó 2015-7-23 22:36 ½s¿è

¦^´_ 3# finally0130


    ¤£¬O¥Î«ö¶s±Ò°Êªº¡I¦Ó¬O¦b¬Y¤@½d³ò(¨Ò¦p§A¹Ï¨ÒªºDÄ檺²Ä4¦C°_¨Ó»¡)
¥u­n¬O³o¨ä¤¤ªºÀx¦s®æµo¥ÍÅܤÆ(´N¬O§A¦³¼g¤JªF¦è«á)´N·|²£¥ÍÅܤÆ
¦¹¨Æ¥óªº¦ì¸m¦p¤U¹Ï


¤W¹Ïªºµ{¦¡°õ¦æ



¤W¹Ïªºµ{¦¡½X¦p¤U(¤è«K§A½Æ»s)
  1. Private Sub Worksheet_Change(ByVal Target As Range)
  2. On Error Resume Next
  3.     If Target.Column = 4 And Target.Row > 3 And Target <> "" Then
  4.    
  5.         Application.EnableEvents = False
  6.         Cells(Target.Row - 1, 6).AutoFill _
  7.         Destination:=Range(Cells(Target.Row - 1, 6), Cells(Target.Row, 6)), Type:=xlFillDefault
  8.         Application.EnableEvents = True
  9.     End If
  10. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¬Ý§O¤H¤£¶¶²´¡A¬O¦Û¤v­×¾i¤£°÷¡C
ªð¦^¦Cªí ¤W¤@¥DÃD