Sub Macro45()
  datagyo = 2
  Sheets("データ").Select
  Cells(datagyo, 1).Select
  i = 1
   Do Until Cells(datagyo, 2) = "" Or i > 10
    If Cells(datagyo, 1) = "レ" Then
      Range(Cells(datagyo, 2), Cells(datagyo, 6)).Select
      Selection.Copy
      Sheets("入力").Select
      Cells(i + 1, 1).Select
      ActiveSheet.Paste
      Sheets("データ").Select
      Application.CutCopyMode = False
      i = i + 1
    End If
      datagyo = datagyo + 1
   Loop

   If i > 10 Then
    MsgBox "11人目以降の人は印刷されません。"
   End If
  Sheets("様式").Select
  ActiveWindow.SelectedSheets.PrintPreview
End Sub