第2个回答 2014-09-18
Sub AX_SP_ReportOutput()
Dim N As Integer, MinMax_File As String
Application.ScreenUpdating = False
On Error Resume Next
N = MsgBox("叫旧AX Shipipping plan盾? ", 1 + vbQuestion + vbDefaultButton1, "放纳矗ボ")
If N = 1 Then
If ActiveSheet.FilterMode = True Then ActiveSheet.ShowAllData
Sheet11.Select
Sheet11.Copy
Cells.Select
Selection.Copy
Selection.Paste
Cells(1, 1).Select
Application.CutCopyMode = False
ChDir "C:\Documents and Settings\" & Application.UserName & "\"
MinMax_File = Application.GetSaveAsFilename(CurDir & "\" & "LV(BJ) " & Cells(6, "a") & " shipping plan AX " & Application.WorksheetFunction.Text(Date, "MM-DD-YYYY") & ".xls", "Excel Files(*.xls),*.xls", , "Name your file")
If MinMax_File = "False" Then
MsgBox "癸ぃ癣眤ゼゅン", vbExclamation, "Navy矗ボ"
Exit Sub
Else
ActiveWorkbook.SaveAs MinMax_File, xlNormal
Windows(Dir(MinMax_File)).Close
End If
Else
Exit Sub
End If
End Sub
用这个自己改改吧