|
本帖最后由 access新新新手 于 2016-9-16 13:55 编辑
Sub 汇总工作薄数据()
Dim br
Sheets("汇总").Range("a2:d65536").ClearContents
br = [{"序号","客户名称","平台名称","应收金额","实收金额"}]
Range("A1:E1") = br
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, 5).Copy Rng
End If
Next
End Sub
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|