- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 84
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2025-4-8
               
|
- Private Sub CommandButton2_Click()
- Dim A As Range, Rng As Range
- If TextBox1.Text = "" Then
- MsgBox "½Ð¿é¤J¥¿½TªºÈ"
- Else
- Application.ScreenUpdating = False
- Worksheets("¤u§@ªí2").Range("A:G").Clear
- With Worksheets("¤u§@ªí1")
- Set A = .Cells.Find(TextBox1, Lookat:=xlPart)
- If Not A Is Nothing Then
- first = A.Address
- Do
- If Rng Is Nothing Then
- Set Rng = .Cells(A.Row, 1).MergeArea
- Else
- Set Rng = Union(Rng, .Cells(A.Row, 1).MergeArea)
- End If
- Set A = .Cells.FindNext(A)
- Loop While Not A Is Nothing And A.Address <> first
- Rng.EntireRow.Copy Sheets("¤u§@ªí2").[A1]
- Else
- MsgBox "µL²Å¦X¸ê®Æ"
- End If
- End With
- End If
- Application.ScreenUpdating = True
- End Sub
½Æ»s¥N½X ¦^´_ 7# afu9240 |
|