This works for me.
To test I have set the default path to J: (one of my USB ports). (alter to suit your port.)
If you are saving to C: a destination folder must exist or you need to create one on the fly.
Sub SaveAllResults()
Dim cell As Range
Dim FilePath As String
FilePath = "J:\" 'change this path for generated files according to you needs
Sheets("Master - One Comment").Select
For Each cell In Sheets("Evaluation").Range("A2:A" & Sheets("Evaluation").Cells(Rows.Count, 1).End(xlUp).Row)
Range("H4").Value = cell.Value
Calculate
DoEvents
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=FilePath & cell & ".pdf", Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=False
'Call Create_PDF(Sheets("Master - One Comment").Range("A1:I72"), FilePath & cell.Value & ".pdf", True, False)
Next cell
End Sub
Bookmarks