Hello,
I'm trying to generate a series of Excel (*.xlsx) files and am getting this error when trying to save the file.
I've taken out the non-offending code to make it simpler
Any help is appreciated.
I'm trying to generate a series of Excel (*.xlsx) files and am getting this error when trying to save the file.
I've taken out the non-offending code to make it simpler
Any help is appreciated.
VBA Code:
Sub PDP_RequestQuotes()
Dim CurRow As Integer
For Each cProveedor In ActiveWorkbook.Sheets("Unique").Range("ProveedoresUnique")
Debug.Print cProveedor.Value
Proveedor = ThisWorkbook.Sheets("Form_PDP").Range("E5").Value
FilePath = "C:\Users\me\OneDrive\Escritorio\"
FileName = Year(Date) & Right("00" & Len(Month(Date)), 2) & Right("00" & Len(Day(Date)), 2) & " - " & Proveedor & ".xlsx"
ThisWorkbook.Sheets("Form_PDP").Copy
ThisWorkbook.SaveAs FileName:=FilePath & FileName, FileFormat:=1
ThisWorkbook.Close False
Next cProveedor
End Sub