回答編集履歴
1
追記
test
CHANGED
@@ -35,3 +35,33 @@
|
|
35
35
|
|
36
36
|
|
37
37
|
```
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
---
|
42
|
+
|
43
|
+
<追記>複数回登場する場合に初回のみ処理する判定を追加
|
44
|
+
|
45
|
+
```VBA
|
46
|
+
|
47
|
+
With ws.UsedRange
|
48
|
+
|
49
|
+
Dim i
|
50
|
+
|
51
|
+
For i = 2 To .Rows.Count
|
52
|
+
|
53
|
+
If WorksheetFunction.Match(.Cells(i, 1), .Columns(1), False) = i Then
|
54
|
+
|
55
|
+
.AutoFilter 1, .Cells(i, 1)
|
56
|
+
|
57
|
+
'.Worksheet.PrintOut
|
58
|
+
|
59
|
+
'.Worksheet.ExportAsFixedFormat xlTypePDF, .Cells(i, 1)
|
60
|
+
|
61
|
+
End If
|
62
|
+
|
63
|
+
Next
|
64
|
+
|
65
|
+
End With
|
66
|
+
|
67
|
+
```
|