Hello to the patient guru's of Mr. Excel.
The file is not being saved. I'm getting the error message "CEDR_File_for_AtHoc_09-21-2023 948AM.csv' cannot be accessed. The file may be corrupted, located on a server that is not responding, or read-only."
Ideas?
PS was just "upgraded" to Office LTSC on corporate Win 10. Not yet listed as Office Version an option
Your time and assistance is deeply appreciated.
Ron
The file is not being saved. I'm getting the error message "CEDR_File_for_AtHoc_09-21-2023 948AM.csv' cannot be accessed. The file may be corrupted, located on a server that is not responding, or read-only."
Ideas?
PS was just "upgraded" to Office LTSC on corporate Win 10. Not yet listed as Office Version an option
Your time and assistance is deeply appreciated.
Ron
VBA Code:
Sub SaveFinalAsCVS3_m()
'https://www.mrexcel.com/board/threads/macro-needed-to-save-workbook-as-xlsx-and-remove-macros.1035215/
'20230919
'
Dim FileD As String
Dim FileP As String 'file path
Dim FileN As String ' file name
Dim FileF As String 'File Format
Dim ThisWb As Workbook
'---
Set ThisWb = ActiveWorkbook
With ThisWb
'---
FileP = Range("SaveFile").Value
FileN = "CEDR_File_for_AtHoc_"
FileD = Format(Now, "mm-dd-yyyy hmmAM/PM")
'---
ThisWb.SaveAs FileP & FileN & FileD & ".csv", FileFormat:=6
'---
ThisWb.Saved = True
'
End With 'ThisWb
End Sub