Sub 汇总工作薄数据()
Sheets("汇总").Range("a2:f65536").ClearContents
br = [{"ITEM","ITEM_DESC","UM","ITEM_CLAS7","ITEM_CLAS8","PRDLN"}]
Range("a1:f1") = br
Rows("2:65536").Clear
Dim sht As Worksheet, xrow As Integer, Rng As Range
For Each sht In Worksheets
If sht.Name <> "汇总" Then
Set Rng = Range("a65536").End(xlUp).Offset(1, 0)
xrow = sht.Range("a1").CurrentRegion.Rows.Count - 1
sht.Range("a2").Resize(xrow, 6).Copy Rng
End If
Next
End Sub 作者: yanwei82123300 时间: 2016-5-18 11:08
access新新新手 ,谢谢老师帮助作者: pureshadow 时间: 2016-5-18 19:54
O啦插件:http://www.office-cn.net/t/exaddin/index.html?home.htm