ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

½Ð°Ý§Ú­n¦p¦ó§ïvba

½Ð°Ý§Ú­n¦p¦ó§ïvba

¥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)

¦^´_ 1# JEAN
¬O§_³o¸Ì¨S§ï¨ì?

Sheets("»â¥Î°O¿ý©ú²Óªí").Cells(r, 1).Resize(S, 13) = Application.Transpose(Application.Transpose(Ar))
Sheets("»â¥Î°O¿ý©ú²Óªí (2)").Cells(r, 1).Resize(S, 13) = Application.Transpose(Application.Transpose(Ar))

TOP

¦^´_ 2# stillfish00


   ¶â¶â.¦n,ÁÂÁ±z

TOP

        ÀR«ä¦Û¦b : ¤H¥Í³Ì¤jªº¦¨´N¬O±q¥¢±Ñ¤¤¯¸°_¨Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD