Sub With_Three_Loops()
Dim myDir As String
Dim c As Range
Dim i As Long, j As Long
myDir = "C:\Abduls_PDF_Files\" '<---- Change as required
For i = 3 To ThisWorkbook.Worksheets.Count
Sheets(i).UsedRange.Offset(18).ClearContents
Next i
With Sheets("Data")
For Each c In .Range("F2:F" & .Cells(.Rows.Count, 6).End(xlUp).Row)
If Not Sheets(c.Value) Is Nothing Then
With Sheets(c.Value)
.Cells(.Rows.Count, 2).End(xlUp).Offset(1).Resize(, 4).Value = c.Offset(, -4).Resize(, 4).Value
End With
End If
Next c
End With
For j = 3 To ThisWorkbook.Worksheets.Count
With Sheets(j)
If Len(.Cells(15, 3)) > 0 Then
.PageSetup.PrintArea = .Range("A1:E" & .Cells(.Rows.Count, 5).End(xlUp).Row).Address
.ExportAsFixedFormat 0, myDir & .Cells(15, 3).Value & ".pdf"
End If
End With
Next j
End Sub