Hi,
I have tried to modify the code below to select the folder to save at but not luck, how to modify it to prompt for saving location and start at this location:
C:\Users\jose.rossi\Desktop\Excel Files\Reconciliations\
code:
Thank you,
I have tried to modify the code below to select the folder to save at but not luck, how to modify it to prompt for saving location and start at this location:
C:\Users\jose.rossi\Desktop\Excel Files\Reconciliations\
code:
VBA Code:
Sub PDFActiveSheet()
'Varriables
Dim SaveRng As Range
Dim pdfname As String
Dim path As String
'Setting range to be saved
Set SaveRng = Range("SAVE_PDF")
'setting file name with a cell value
CurrentMonth = Format(ActiveSheet.Range("E1").Value, "mm-dd-yyyy")
pdfname = Range("V2") & "_" & CurrentMonth
'path
path = "C:\Users\jose.rossi\Desktop\Excel Files\Reconciliations\"
'save the range as pdf
SaveRng.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=path & pdfname & ".pdf"
End Sub
Thank you,