- ©«¤l
- 522
- ¥DÃD
- 36
- ºëµØ
- 1
- ¿n¤À
- 603
- ÂI¦W
- 0
- §@·~¨t²Î
- win xp sp3
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-12-13
- ³Ì«áµn¿ý
- 2021-7-11
|
¦^´_ 2# s7659109
¸Õ¸Õ¬Ý:
- Option Explicit '±j¨î«Å§iÅܼÆ
- '§R°£
- Private Sub CommandButton1_Click()
- Dim sh1, sh2 As Worksheet
- Set sh1 = Sheets("¨Ó·½")
- Set sh2 = Sheets("µ²ªG")
-
- sh2.[H1] = sh1.[H1]
- sh1.[I1] = "=MATCH(H1,A:A,0)"
- sh2.[I1] = "=MATCH(H1,A:A,0)"
-
- '§R°£"¨Ó·½"
- If Application.IsNumber(sh1.[I1]) Then
- sh1.Rows(sh1.[I1]).Delete
- End If
-
- '§R°£"µ²ªG"
- If Application.IsNumber(sh2.[I1]) Then
- sh2.Rows(sh2.[I1]).Delete
- End If
- End Sub
- '
- '·s¼W¤@µ§
- Private Sub CommandButton2_Click()
- Dim sh1, sh2 As Worksheet
- Dim lastRow1, lastRow2 As Integer
- Set sh1 = Sheets("¨Ó·½")
- Set sh2 = Sheets("µ²ªG")
-
- lastRow1 = sh1.[A65536].End(xlUp).Row '¨ú±o "¨Ó·½"ÄæA³Ì¤U±«DªÅ¥Õ¦C ªº¦C¸¹
- lastRow2 = sh2.[A65536].End(xlUp).Row + 1 '¨ú±o"µ²ªG"ÄæA³Ì¤U±«DªÅ¥Õ¦C ªº¤U¤@¦Cªº¦C¸¹
-
- '±N"¨Ó·½"ªº·s¸ê®Æ½Æ»s¨ì"µ²ªG"
- sh1.Cells(lastRow1, 1).Resize(1, 3).Copy sh2.Cells(lastRow2, 1)
- End Sub
½Æ»s¥N½X ·í¨Ó·½³Q§R°£®É.xls
http://www.mediafire.com/download/2krzi85li7i3npi/%E7%95%B6%E4%BE%86%E6%BA%90%E8%A2%AB%E5%88%AA%E9%99%A4%E6%99%82.7z |
|