I have this which works great...except for the file location. For some reason it's forcing the file save to c:\users\username\documents
I ultimately don't want it in Downloads at all but I'm using this path for testing. I'm sure it's obvious but I'm clearly missing something.
Anyone help? It otherwise saves the file name as I want it and as a .pdf which is perfect.
Sub printPDFSave()
Dim rng As Range
Dim fPath As String
Dim FName As String
Set rng = [Print_Area]
rng.ExportAsFixedFormat Type:=xlTypePDF, Filename:=fPath, quality:=xlQualityStandard, _
includedocproperties:=True, ignoreprintareas:=False, openafterpublish:=True
fPath = "C:\Users\username\Downloads"
FName = Format(Date, "yyyymmdd""-") & Sheets("MHGRIC").Range("BP2").Text
End Sub
I ultimately don't want it in Downloads at all but I'm using this path for testing. I'm sure it's obvious but I'm clearly missing something.
Anyone help? It otherwise saves the file name as I want it and as a .pdf which is perfect.
Sub printPDFSave()
Dim rng As Range
Dim fPath As String
Dim FName As String
Set rng = [Print_Area]
rng.ExportAsFixedFormat Type:=xlTypePDF, Filename:=fPath, quality:=xlQualityStandard, _
includedocproperties:=True, ignoreprintareas:=False, openafterpublish:=True
fPath = "C:\Users\username\Downloads"
FName = Format(Date, "yyyymmdd""-") & Sheets("MHGRIC").Range("BP2").Text
End Sub