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

[µo°Ý] ¦C¦L½d³ò»P®æ¦¡³]©w

¦^´_ 1# babesia

¤u§@ªí¼Ò²Õ(´ú¸Õªí¤u§@ªí)
  1. Private Sub worksheet_change(ByVal Target As Range)
  2. If Target.Column = 1 Then
  3.    With Sheets("Á`ªí")
  4.      Set Rng = .Columns(1).Find(Target, , , xlWhole)
  5.      If Not Rng Is Nothing Then
  6.        Rng.Offset(0, 1).Resize(1, 2).Copy Cells(Target.Row, 2)
  7.        Rng.Offset(0, 4).Copy Cells(Target.Row, 4)
  8.      Else: MsgBox "¬dµL¦¹§Ç¸¹"
  9.            Target = ""
  10.      End If
  11.    End With
  12. End If
  13. With [A1].CurrentRegion.Borders
  14.    .LineStyle = xlContinuous
  15.    .Weight = xlThin
  16. End With
  17. PR = [A1].CurrentRegion.Address
  18. ActiveSheet.PageSetup.PrintArea = PR
  19. End Sub
½Æ»s¥N½X

TOP

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