Text
Text
Dim ws As Worksheet
Dim filterCell As Range
Dim filterList As Range
Dim filterValue As Range
Dim folderPath As String
Dim consolidatedPDFPath As String
Dim pdfApp As Object
Dim pdfDoc As Object
' Specify the folder path to save individual PDFs and consolidated PDF
folderPath = GetFolderPath()
If folderPath = "" Then
MsgBox "Operation canceled. No folder path selected."
Exit Sub
End If
' Clean up
If Not pdfApp Is Nothing Then
pdfApp.Exit
End If
End Sub
If folderDialog.Show = -1 Then
GetFolderPath = folderDialog.SelectedItems(1)
Else
GetFolderPath = ""
End If
End Function