Sub LoopThroughSheets()
Dim ws As Worksheet
Dim Folder As String
Folder = "" 'Indsæt stien til den mappe, hvor du vil gemme pdf'erne
For Each ws In ThisWorkbook.Worksheets
SaveSheetAsPDF ws, Folder
Next ws
End Sub
Sub SaveSheetAsPDF(ws As Worksheet, Optional Folder As String)
Dim Name As String
Dim FullPath As String
Name = ws.Range("A1") 'erstat A1 med den celle, hvor du har filnavnet
If Folder = "" Then
Folder = Application.DefaultFilePath
End If
FullPath = Folder & "\" & Name
ws.ExportAsFixedFormat _
Type:=xlTypePDF, _
FileName:=FullPath
End Sub