質問編集履歴
2
記載場所の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -92,4 +92,8 @@
|
|
92
92
|
|
93
93
|
.AxisGroup = 2
|
94
94
|
|
95
|
-
End With
|
95
|
+
End Withここに言語を入力
|
96
|
+
|
97
|
+
コード
|
98
|
+
|
99
|
+
```
|
1
コードの記載場所修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,59 +8,47 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
+
```Sub test1()
|
12
|
+
|
13
|
+
With ActiveSheet.ChartObjects _
|
14
|
+
|
15
|
+
.Add(450, 25, 450, 300).Chart
|
16
|
+
|
17
|
+
.ChartType = xlColumnClustered
|
18
|
+
|
19
|
+
.SetSourceData Source:=Range(“A3:B14, D3:D14”)
|
20
|
+
|
21
|
+
.HasLegend = True
|
22
|
+
|
23
|
+
.HasTitle = True
|
24
|
+
|
25
|
+
.ChartTitle.Text = “改善前”
|
26
|
+
|
27
|
+
.ChartTitle.Font.Size = 16
|
28
|
+
|
29
|
+
.Legend.Position = xlLegendPositionTop
|
30
|
+
|
11
|
-
|
31
|
+
End With
|
12
32
|
|
13
33
|
|
14
|
-
|
15
|
-
```**__###ここに言語を入力__**
|
16
|
-
|
17
|
-
コード
|
18
|
-
|
19
|
-
Sub test1()
|
20
|
-
|
21
|
-
With ActiveSheet.ChartObjects _
|
22
|
-
|
23
|
-
.Add(450, 25, 450, 300).Chart
|
24
|
-
|
25
|
-
.ChartType = xlColumnClustered
|
26
|
-
|
27
|
-
.SetSourceData Source:=Range(“A3:B14, D3:D14”)
|
28
|
-
|
29
|
-
.HasLegend = True
|
30
|
-
|
31
|
-
.HasTitle = True
|
32
|
-
|
33
|
-
.ChartTitle.Text = “改善前”
|
34
|
-
|
35
|
-
.ChartTitle.Font.Size = 16
|
36
|
-
|
37
|
-
.Legend.Position = xlLegendPositionTop
|
38
|
-
|
39
|
-
End With
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
34
|
|
45
35
|
End Sub
|
46
36
|
|
47
37
|
|
48
38
|
|
39
|
+
Sub test2()
|
40
|
+
|
41
|
+
With ActiveSheet.ChartObjects(1).Chart.SeriesCollection(2)
|
42
|
+
|
43
|
+
.ChartType = xlLineMarkers
|
44
|
+
|
45
|
+
.Values = Range(“D3:D14”)
|
46
|
+
|
47
|
+
.AxisGroup = 2
|
48
|
+
|
49
|
+
End With
|
49
50
|
|
50
51
|
|
51
|
-
Sub test2()
|
52
|
-
|
53
|
-
With ActiveSheet.ChartObjects(1).Chart.SeriesCollection(2)
|
54
|
-
|
55
|
-
.ChartType = xlLineMarkers
|
56
|
-
|
57
|
-
.Values = Range(“D3:D14”)
|
58
|
-
|
59
|
-
.AxisGroup = 2
|
60
|
-
|
61
|
-
End With
|
62
|
-
|
63
|
-
|
64
52
|
|
65
53
|
End Sub
|
66
54
|
|
@@ -68,44 +56,40 @@
|
|
68
56
|
|
69
57
|
Sub test3()
|
70
58
|
|
71
|
-
|
59
|
+
With ActiveSheet.ChartObjects _
|
72
60
|
|
73
|
-
|
61
|
+
.Add(450, 500, 450, 300).Chart
|
74
62
|
|
75
|
-
|
63
|
+
.ChartType = xlColumnClustered
|
76
64
|
|
77
|
-
|
65
|
+
.SetSourceData Source:=Range(“A40:B51, D40:D51”)
|
78
66
|
|
79
|
-
|
67
|
+
.HasLegend = True
|
80
68
|
|
81
|
-
|
69
|
+
.HasTitle = True
|
82
70
|
|
83
|
-
|
71
|
+
.ChartTitle.Text = “改善後”
|
84
72
|
|
85
|
-
|
73
|
+
.ChartTitle.Font.Size = 16
|
86
74
|
|
87
|
-
|
75
|
+
.Legend.Position = xlLegendPositionTop
|
88
76
|
|
89
|
-
|
77
|
+
End With
|
90
78
|
|
91
|
-
|
92
79
|
|
93
|
-
|
94
80
|
|
95
81
|
End Sub
|
96
82
|
|
97
83
|
|
98
84
|
|
99
|
-
|
100
|
-
|
101
85
|
Sub test4()
|
102
86
|
|
103
|
-
|
87
|
+
With ActiveSheet.ChartObjects(1).Chart.SeriesCollection(2)
|
104
88
|
|
105
|
-
|
89
|
+
.ChartType = xlLineMarkers
|
106
90
|
|
107
|
-
|
91
|
+
.Values = Range(“D40:D51”)
|
108
92
|
|
109
|
-
|
93
|
+
.AxisGroup = 2
|
110
94
|
|
111
|
-
|
95
|
+
End With
|