- ©«¤l
- 4
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 50
- ÂI¦W
- 0
- §@·~¨t²Î
- windows7
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2015-8-13
- ³Ì«áµn¿ý
- 2020-6-26
|
¤p§Ì¨ÓÄmÁà¤@¤U¡AÁٽЦU¦ì¤j¤j«ü±Ð...
1. ¤u§@ªí¤W·s¼W¤@Ó CommandButton1¡A©R¦W¬°"§ó·s"
2. ¦b CommandButton1_Click ¤º¿é¤J¥H¤U¤º®e¡G
Option Explicit
Private Sub CommandButton1_Click()
Dim SH1W As Worksheet
Dim Ra1 As Range
Dim X, Y
Set SH1W = Sheets("¤u§@ªí1")
Set Ra1 = SH1W.Range("B2:B" & [B65536].End(xlUp).Row)
X = Ra1.Offset(1, 0).Resize(1, 1).Value
SH1W.Range("C3:O14").ClearContents
For Each X In Range("B3:B14")
For Each Y In Range("C2:O2")
If X = Y Then
Y.Offset(X.Row - 2, Y.Row - 2).Resize(1, 1).Select
Selection = "1"
End If
Next Y
Next X
End Sub
¤p§Ì¤]¬Oè¾ÇVBA¨S¦h¤[¡A¦pªG¦³¿ù¡AÁٽЦU¦ì¤j¤j¥]²[~ |
|