excel_2009
Active Member
- Joined
- Sep 14, 2009
- Messages
- 318
Hi excel gurus,
I have the following code which works perfectly:
The code copies a worksheet and allows a user to save it as an XLS file, all I need help on is to disable the "Save As" user prompt, I want the file to be saved automatically to the desktop i.e C\Users\Desktop and the name of the file to be referenced from Sheet2 cell A1.
Is this possible, if so how?
Thank you!
I have the following code which works perfectly:
Code:
Sub export_lionbridge()
Dim New_file_name
New_file_name = Application.GetSaveAsFilename(, "Microsoft Excel Workbook (*.xls), *.xls")
Sheets("Sheet1").Copy
ActiveWorkbook.SaveAs FileName:=New_file_name, FileFormat:=xlNormal
ActiveWindow.Close
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub
The code copies a worksheet and allows a user to save it as an XLS file, all I need help on is to disable the "Save As" user prompt, I want the file to be saved automatically to the desktop i.e C\Users\Desktop and the name of the file to be referenced from Sheet2 cell A1.
Is this possible, if so how?
Thank you!