Sub Export(control As IRibbonControl) Dim OrigName As String OrigName = ActiveWorkbook.FullName Application.DisplayAlerts = False ActiveWorkbook.SaveAs "D:\attach\" + ActiveWorkbook.Name ActiveWorkbook.SaveAs OrigName MsgBox "File exported into D:\attach" End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)