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

[µo°Ý] ¦p¦ó¥u±N·j´M¨ìªº¸ê®Æ¡A¤£½Æ»s®æ¦¡¤Æ±ø¥ó¡A¥u½Æ»s[­È]

[µo°Ý] ¦p¦ó¥u±N·j´M¨ìªº¸ê®Æ¡A¤£½Æ»s®æ¦¡¤Æ±ø¥ó¡A¥u½Æ»s[­È]

Private Sub Worksheet_Change(ByVal Target As Range)
Dim A As Range, Rng As Range
If Target.Column = 1 Then
With Sheets("ºî¦X¸ê®Æ®w")
For i = 1 To .UsedRange.Rows.Count
   Set A = .UsedRange.Rows(i).Find(Target)
   If Not A Is Nothing Then
     If Rng Is Nothing Then
     Set Rng = .UsedRange.Rows(i)
     Else
     Set Rng = Union(Rng, .UsedRange.Rows(i))
     End If
    End If
Next
End With
End If
Application.EnableEvents = False
If Not Rng Is Nothing Then Rng.Copy Target.Offset(, 1) Else Target.Offset(, 1).Resize(, 50) = ""
Application.EnableEvents = True
End Sub

¦^´_ 1# jackson7015
¥u½Æ»s[­È],Google ¤@¤U·|¦³µª®×.

·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

  1. If Not Rng Is Nothing Then
  2. Rng.Copy: Target.Offset(, 1).PasteSpecial 3
  3. Else
  4. Target.Offset(, 1).Resize(, 50) = ""
  5. End If
½Æ»s¥N½X

TOP

¦^´_  jackson7015
¥u½Æ»s[­È],Google ¤@¤U·|¦³µª®×.
GBKEE µoªí©ó 2013-9-17 09:44

ÁÂÁÂGBKEEª©¤jªº«ü¾É
¤p§Ì¦³¿ý»s´ú¸Õ¹L
¥u¬O¯à¤O¤£¨¬¡A¤£¤Ó²M·¡PasteSpecial¦a©ñ¸m¦ì¸m¸Ó¼g¦b¦ó³B



oobird µoªí©ó 2013-9-17 09:48

·PÁÂoobirdª©¤jªº»¡©ú
­ì¨ÓPasteSpecialªº½s¼g³B¬O¨ºùØ

- - - -
·PÁ¨â¦ìª©¤jªº¨ó§U

TOP

¦^´_ 4# jackson7015
   
¤p§Ì¦³¿ý»s´ú¸Õ¹L
¥u¬O¯à¤O¤£¨¬¡A¤£¤Ó²M·¡PasteSpecial¦a©ñ¸m¦ì¸m¸Ó¼g¦b¦ó³B
  1. Option Explicit
  2. Sub Macro1() '
  3. ' Macro1 Macro
  4. ' GBKEE ¦b 2013/9/18 ¿ý»sªº¥¨¶°'
  5. '
  6.     'Range("C13:F13").Select
  7.     'Selection.Copy
  8.     Range("C13:F13").Copy
  9.    
  10.     '**************************************
  11.     'Range("E20").Select
  12.     'Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
  13.         :=False, Transpose:=False
  14.     Range("E20").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
  15.         :=False, Transpose:=False
  16. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : ÀR§¤±`®¦¤v¹L¡B¶¢½Í²ö½×¤H«D¡C
ªð¦^¦Cªí ¤W¤@¥DÃD