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

[µo°Ý] ««ª½Äæ¦ì¶µ¥ØÂà¦Ü¤ô¥­¦CÅã¥Ü

¤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¥]²[~

TOP

·PÁ­ã³ö¤jªº¸Ñ»¡¡A§Ú¤]¬ÝÀ´¤F~

TOP

        ÀR«ä¦Û¦b : ¤Hªº¤ß¦a¬O¤@²¥¥Ð¡A¤g¦a¨S¦³¼½¤U¦nºØ¤l¡A¤]ªø¤£¥X¦nªºªG¹ê¡C -
ªð¦^¦Cªí ¤W¤@¥DÃD