Dim AtAPP As Excel.Application
Dim AtBook As Excel.Workbook
Dim AtSheet As Excel.Worksheet
Dim flieName As String
ActiveSheet.Copy
Set AtBook = Excel.ActiveWorkbook
Set AtSheet = ActiveSheet
AtSheet.Cells.Select
Selection.Copy
AtSheet.Cells.PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
Range("A1").Select
flieName = Application.GetSaveAsFilename(fileFilter:="Excel files (*.xls),*.xls,All files (*.*),*.*")
If flieName <> "False" Then
AtBook.SaveAs flieName, FileFormat:=xlExcel8
ActiveWindow.Close
Else
ActiveWindow.Close False
End If
End Sub
引用通告地址 (0):
http://www.cnng.net/blog/trackback.asp?tbID=81
http://www.cnng.net/blog/trackback.asp?tbID=81&CP=GBK
http://www.cnng.net/blog/trackback.asp?tbID=81
http://www.cnng.net/blog/trackback.asp?tbID=81&CP=GBK