|
Sub QQ()
Windows("汇总数据.xls").Activate
ActiveSheet.Range("$A$1:$J$3000").AutoFilter Field:=5, Criteria1:="簇桥中通新"
Range("A1:J500").Select
Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
Selection.Copy
Workbooks.Add
ActiveSheet.Paste
Columns("A:A").ColumnWidth = 12
Columns("B:B").ColumnWidth = 10
Application.CutCopyMode = False
ChDir "C:\Users\Administrator\Desktop\汇总"
ActiveWorkbook.SaveAs Filename:="C:\Users\Administrator\Desktop\汇总\" & " 簇桥中通新" & Right(Year(Date), 2) & Format(Month(Date), "00") & Format(Day(Date - 1), "00") & ".xls" _
, FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
End Sub
代码是这样的,表格文件 簇桥中通新150802,发送给qq好友就提醒打开文件错误,把文件名称重新改一下,就能正常发送了,这是为什么呢?
求老师指导…………
|
-
-
D.zip
13.53 KB, 下载次数: 189
|