質問編集履歴
1
コード記載
test
CHANGED
File without changes
|
test
CHANGED
@@ -62,4 +62,78 @@
|
|
62
62
|
|
63
63
|
|
64
64
|
|
65
|
+
私が初めて、コードを書いており、多分、間違いが多いかと思います。
|
66
|
+
|
67
|
+
ご教授いただけますと幸いです。
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
Sub 登録()
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
Dim ThisSh As Worksheet
|
76
|
+
|
77
|
+
Dim ThisCh As Worksheet
|
78
|
+
|
79
|
+
Dim Clo As Long
|
80
|
+
|
81
|
+
Dim Rws As Long
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
Sh = Wb.Sheets("Sheet2")
|
86
|
+
|
87
|
+
Ch = Wb.Sheets("Sheet1")
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
Set ThisSh = ThisWorkbook.Sheets("Sheet1")
|
92
|
+
|
93
|
+
Set ThisCh = ThisWorkbook.Sheets("Sheet2")
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
col = ThisSh.Range("1:1").Find(What:=Ch.Range("B1")).Column
|
98
|
+
|
99
|
+
Rws = ThisSh.Range("A:A").Find(What:=Ch.Range("A2")).Row
|
100
|
+
|
101
|
+
ThisSh.Cells(Rws, col).Value = Ch.Range("B2")
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
col = ThisSh.Range("1:1").Find(What:=Ch.Range("B1")).Column
|
106
|
+
|
107
|
+
Rws = ThisSh.Range("A:A").Find(What:=Ch.Range("A3")).Row
|
108
|
+
|
109
|
+
ThisSh.Cells(Rws, col).Value = Ch.Range("B3")
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
col = ThisSh.Range("1:1").Find(What:=Ch.Range("B1")).Column
|
114
|
+
|
115
|
+
Rws = ThisSh.Range("A:A").Find(What:=Ch.Range("A4")).Row
|
116
|
+
|
117
|
+
ThisSh.Cells(Rws, col).Value = Ch.Range("B4")
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
Set ThisSh = Nothing
|
124
|
+
|
125
|
+
Set ThisCh = Nothing
|
126
|
+
|
127
|
+
Set Sh = Nothing
|
128
|
+
|
129
|
+
Set Ch = Nothing
|
130
|
+
|
131
|
+
Set Wb = Nothing
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
End Sub
|
136
|
+
|
137
|
+
|
138
|
+
|
65
139
|
よろしくお願い致します。
|