Sub 填充()
Dim rng As Range
Set rng = Intersect([b:d].SpecialCells(xlCellTypeConstants).EntireRow, [a:a])
Columns(1).ClearContents
rng = 1
End Sub
Sub 合并数据()
Dim sht As Worksheet, wb As Workbook, Msht As Worksheet
Application.ScreenUpdating = False
Set Msht = Sheets("第2题")
Msht.[a2:d65536].ClearContents
Set wb = Workbooks.Open(ThisWorkbook.Path & "\A.xls")
For Each sht In wb.Sheets
sht.Range("a2:d" & sht.UsedRange.Rows.Count).Copy
Msht.Cells(Msht.[a1].CurrentRegion.Rows.Count + 1, 1).PasteSpecial xlPasteValues
Next
wb.Close False
Application.ScreenUpdating = True
End Sub