回答編集履歴
1
追記
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
```
|
5
|
+
```VBA
|
6
6
|
|
7
7
|
Sub DataLabel_1()
|
8
8
|
|
@@ -61,3 +61,53 @@
|
|
61
61
|
End Sub
|
62
62
|
|
63
63
|
```
|
64
|
+
|
65
|
+
すべてのラベル取得
|
66
|
+
|
67
|
+
```VBA
|
68
|
+
|
69
|
+
Sub subete()
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
Dim a As String
|
74
|
+
|
75
|
+
Dim b As Variant
|
76
|
+
|
77
|
+
Dim c As Object
|
78
|
+
|
79
|
+
Dim n As Integer
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
For Each c In ActiveChart.FullSeriesCollection
|
84
|
+
|
85
|
+
With c
|
86
|
+
|
87
|
+
Select Case .ChartType
|
88
|
+
|
89
|
+
Case xlPie '円
|
90
|
+
|
91
|
+
a = Replace(Replace(.Formula, "=SERIES(", ""), ")", "")
|
92
|
+
|
93
|
+
b = Split(a, ",")
|
94
|
+
|
95
|
+
For n = 1 To Range(b(1)).Cells.Count
|
96
|
+
|
97
|
+
Debug.Print n; ">", Range(b(1)).Cells(n).Value
|
98
|
+
|
99
|
+
Next
|
100
|
+
|
101
|
+
End Select
|
102
|
+
|
103
|
+
End With
|
104
|
+
|
105
|
+
Next
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
End Sub
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
```
|