回答編集履歴
3
コード追記
test
CHANGED
@@ -35,3 +35,31 @@
|
|
35
35
|
End If
|
36
36
|
|
37
37
|
```
|
38
|
+
|
39
|
+
ループを使うなら、
|
40
|
+
|
41
|
+
```vba
|
42
|
+
|
43
|
+
Dim b As Boolean
|
44
|
+
|
45
|
+
Dim r As Range
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
b = True
|
50
|
+
|
51
|
+
For Each r In Range("B1:f1").Cells
|
52
|
+
|
53
|
+
If r <> r.Offset(1) Then
|
54
|
+
|
55
|
+
b = False
|
56
|
+
|
57
|
+
Exit For
|
58
|
+
|
59
|
+
End If
|
60
|
+
|
61
|
+
Next
|
62
|
+
|
63
|
+
If b Then Range("A2").Value = "〇"
|
64
|
+
|
65
|
+
```
|
2
コード追記
test
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
地道に、
|
2
|
+
|
1
3
|
```vba
|
2
4
|
|
3
5
|
If range("B1") = range("B2") AND _
|
@@ -17,3 +19,19 @@
|
|
17
19
|
End If
|
18
20
|
|
19
21
|
```
|
22
|
+
|
23
|
+
これはちょっと分かりづらいかも
|
24
|
+
|
25
|
+
```vba
|
26
|
+
|
27
|
+
If Join(WorksheetFunction.Transpose(WorksheetFunction.Transpose(Range("A1:F1").Value))) _
|
28
|
+
|
29
|
+
= Join(WorksheetFunction.Transpose(WorksheetFunction.Transpose(Range("A2:F2").Value))) _
|
30
|
+
|
31
|
+
Then
|
32
|
+
|
33
|
+
range("A2").value = "〇"
|
34
|
+
|
35
|
+
End If
|
36
|
+
|
37
|
+
```
|
1
誤字修正
test
CHANGED
@@ -1,7 +1,3 @@
|
|
1
|
-
地道に比較しましょう。
|
2
|
-
|
3
|
-
|
4
|
-
|
5
1
|
```vba
|
6
2
|
|
7
3
|
If range("B1") = range("B2") AND _
|