回答編集履歴
1
追記
test
CHANGED
@@ -45,3 +45,29 @@
|
|
45
45
|
|
46
46
|
|
47
47
|
```
|
48
|
+
|
49
|
+
---
|
50
|
+
|
51
|
+
<追記>
|
52
|
+
|
53
|
+
ExcelがTextJoinに対応していない場合は以下の感じで。
|
54
|
+
|
55
|
+
```VBA
|
56
|
+
|
57
|
+
Function CheckBoxCaptionToCellValue()
|
58
|
+
|
59
|
+
Dim buf
|
60
|
+
|
61
|
+
If Me.CheckBox1.Value Then buf = buf & vbLf & Me.CheckBox1.Caption
|
62
|
+
|
63
|
+
If Me.CheckBox2.Value Then buf = buf & vbLf & Me.CheckBox2.Caption
|
64
|
+
|
65
|
+
If Me.CheckBox3.Value Then buf = buf & vbLf & Me.CheckBox3.Caption
|
66
|
+
|
67
|
+
buf = Mid(buf, 2)
|
68
|
+
|
69
|
+
Range("A1").Value = buf
|
70
|
+
|
71
|
+
End Function
|
72
|
+
|
73
|
+
```
|