'找到平台销售模板,并修改模板名称
platmc = Dir(ipath & "\plat业绩*.xlsx")
platoldname = ipath & "\" & platmc
platnewname = ipath & "\plat业绩" & Format(Date, "yyyymmdd") & ".xlsx"
If platnewname <> "" Then
Name platoldname As platnewname
Else
MsgBox "没有找到plat业绩模板"
Exit Sub
End If
Set platwb = Workbooks.Open(platnewname)
With platwb
.Sheets("业绩").Rows("1:1048576").Delete
platr = ThisWorkbook.Sheets("修订版").Range("BA9")
ThisWorkbook.Sheets("修订版").Range("AT" & platr).CurrentRegion.Copy '复制aliexpress业绩表格
.Sheets("业绩").Range("a1").PasteSpecial Paste:=xlPasteAllUsingSourceTheme, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
.Sheets("业绩").Columns("A:AS").Delete Shift:=xlToLeft
.Sheets("业绩").Range("a1:d2").Value = .Sheets("业绩").Range("a1:d2").Value
.Close True
End With