Hello
Can you please help with the following, I have the following code to save an excel workbook with a defined name to a defined file path. The code works fine. However the file is saved with no visible evidence of it saving unless the user goes back to the destination folder to check.
I would like to open the save as dialog box with the file path and name already shown in the dialog box so the user can click the save button on the dialog box and be assured that this has saved
I've been trying to find the right code but no luck
If anyone can help, I'd appreciate it. Many Thanks
Here is my code
Can you please help with the following, I have the following code to save an excel workbook with a defined name to a defined file path. The code works fine. However the file is saved with no visible evidence of it saving unless the user goes back to the destination folder to check.
I would like to open the save as dialog box with the file path and name already shown in the dialog box so the user can click the save button on the dialog box and be assured that this has saved
I've been trying to find the right code but no luck
If anyone can help, I'd appreciate it. Many Thanks
Here is my code
Code:
Option Explicit
Sub SaveCRtoBotFolder()
Dim Title As String
Dim StartDate As String
Dim Name As String
Dim CurrentFile As String
Dim NewFileType As String
Dim NewFile As String
Const csPath As String = "\\C\Test"
'create data for file name
StartDate = [C11]
StartDate = Format(StartDate, "Long Date")
Title = [I13]
'save workbook with code under user defined name
Application.ScreenUpdating = False ' Prevents screen refreshing.
Name = StartDate & " - CR Works - " & Title & ".xlsm"
CurrentFile = ThisWorkbook.Name
ThisWorkbook.SaveAs Filename:=csPath & CurrentFile, FileFormat:=xlOpenXMLWorkbookMacroEnabled
Application.ScreenUpdating = True
End Sub