質問編集履歴
2
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|
1
title
CHANGED
File without changes
|
body
CHANGED
@@ -19,20 +19,16 @@
|
|
19
19
|
Set R = Range("B14:L1000") 'チェックする範囲を指定
|
20
20
|
Set C = Range("L10") '条件色セルを指定
|
21
21
|
For y = 1 To R.Columns.Count
|
22
|
-
Row = 14
|
23
22
|
For x = 1 To R.Rows.Count
|
24
|
-
If R(x, y).DisplayFormat.Interior.ColorIndex = "44" Then
|
25
|
-
'Range("M" & Row).Value = "○"
|
26
|
-
i = i + 1
|
27
|
-
Else
|
28
|
-
End If
|
29
|
-
Row =
|
23
|
+
Row = 13 + x
|
30
|
-
|
24
|
+
If R(x, y).DisplayFormat.Interior.ColorIndex = "44" Then Range("M" & Row).Value = "○"
|
31
|
-
|
25
|
+
Next x
|
26
|
+
Debug.Print "xは" & x
|
27
|
+
Next y
|
28
|
+
Debug.Print "yは" & y
|
32
29
|
MsgBox ("一致セル数 : " & i)
|
33
30
|
Range("M10") = i
|
34
31
|
End Sub
|
35
|
-
|
36
32
|
```
|
37
33
|
|
38
34
|
### 試したこと
|