¥H¤U¬Oì¨Óªºvba:
Sub »â¥Î³æ¼g¤J()
Dim Ar()
With Sheets("»â¥Î³æ")
If Cells(3, 2) = "" Then
MsgBox "½Ð¿é¤J³¡ªù"
Else
If Cells(4, 2) = "" Then
MsgBox "½Ð¿é¤J»â¥Î¤H¦W¦r"
Else
If Cells(3, 8) = "" Then
MsgBox "½Ð¿é¤J¤é´Á"
Else
If Application.CountA(.[A6:A16]) > 0 Then
For Each a In .[A6:A16].SpecialCells(xlCellTypeConstants)
ReDim Preserve Ar(S)
Ar(S) = Array(.[B3].Value, .[B4].Value, .[H3].Value, a.Value, a.Offset(, 1).Value, a.Offset(, 2).Value, a.Offset(, 3).Value, a.Offset(, 4).Value, a.Offset(, 5).Value, a.Offset(, 6).Value, a.Offset(, 7).Value)
S = S + 1
Next
r = Application.CountA(Sheets("»â¥Î°O¿ý©ú²Óªí").[A:A]) + 2
r = Application.CountA(Sheets("»â¥Î°O¿ý©ú²Óªí (2)").[A:A]) + 2
Sheets("»â¥Î°O¿ý©ú²Óªí").Cells(r, 1).Resize(S, 11) = Application.Transpose(Application.Transpose(Ar))
Sheets("»â¥Î°O¿ý©ú²Óªí (2)").Cells(r, 1).Resize(S, 11) = Application.Transpose(Application.Transpose(Ar))
End If
End If
End If
End If
End With
End Sub
³oÓ¬O§Ú§ïªºvba:
Sub »â¥Î³æ¼g¤J()
Dim Ar()
With Sheets("»â¥Î³æ")
If Cells(3, 2) = "" Then
MsgBox "½Ð¿é¤J³¡ªù"
Else
If Cells(4, 2) = "" Then
MsgBox "½Ð¿é¤J»â¥Î¤H¦W¦r"
Else
If Cells(3, 8) = "" Then
MsgBox "½Ð¿é¤J¤é´Á"
Else
If Application.CountA(.[A6:A16]) > 0 Then
For Each a In .[A6:A16].SpecialCells(xlCellTypeConstants)
ReDim Preserve Ar(S)
Ar(S) = Array(.[B3].Value, .[B4].Value, .[H3].Value, a.Value, a.Offset(, 1).Value, a.Offset(, 2).Value, a.Offset(, 3).Value, a.Offset(, 4).Value, a.Offset(, 5).Value, a.Offset(, 6).Value, a.Offset(, 7).Value., a.Offset(, 8).Valuea.Offset(, 9).Value)
S = S + 1
Next
r = Application.CountA(Sheets("»â¥Î°O¿ý©ú²Óªí").[A:A]) + 2
r = Application.CountA(Sheets("»â¥Î°O¿ý©ú²Óªí (2)").[A:A]) + 2
Sheets("»â¥Î°O¿ý©ú²Óªí").Cells(r, 1).Resize(S, 11) = Application.Transpose(Application.Transpose(Ar))
Sheets("»â¥Î°O¿ý©ú²Óªí (2)").Cells(r, 1).Resize(S, 11) = Application.Transpose(Application.Transpose(Ar))
End If
End If
End If
End If
End With
End Sub
§Ú½Æ¤W§Ún§ïªº¹Ï¤ù
¥¼©R¦W.rar (59.27 KB)
¥¼©R¦W2.rar (91.79 KB)
|