- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 257
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-27
|
¦^´_ 10# av8d
- Private Sub CommandButton1_Click() '¤Ï¿ï
- Application.EnableEvents = False
- Dim Rng As Range
- For Each a In Range("C:C").SpecialCells(xlCellTypeBlanks)
- If Rng Is Nothing Then
- Set Rng = Union(Cells(a.Row, "B"), Cells(a.Row, "D"))
- Else
- Set Rng = Union(Rng, Union(Cells(a.Row, "B"), Cells(a.Row, "D")))
- End If
- Next
- Rng.Copy [J1]
- Rng.Copy Sheets(3).[B2]
- Application.EnableEvents = True
- End Sub
- Private Sub CommandButton2_Click() '¿ï¨ú
- Application.EnableEvents = False
- Dim Rng As Range
- Set Rng = Union([B1], [D1])
- For Each a In Range("C:C").SpecialCells(xlCellTypeConstants)
- Set Rng = Union(Rng, Union(Cells(a.Row, "B"), Cells(a.Row, "D")))
- Next
- Range("J1").CurrentRegion.Clear
- Rng.Copy [J1]
- Sheets(3).[B2].CurrentRegion.Clear
- Rng.Copy Sheets(3).[B2]
- Application.EnableEvents = True
- End Sub
- Private Sub Worksheet_SelectionChange(ByVal Target As Range) '¥´¤Ä
- If Cells(Target.Row, 1) <> "" Then Cells(Target.Row, 3) = IIf(Cells(Target.Row, 3) = "", "v", "")
- End Sub
½Æ»s¥N½X
¤Ï¿ï.zip (21.77 KB)
|
|